Skip to contentSkip to conversation

s390 (7/10): tape driver fixes.

PATCH New Martin Schwidefsky 1 participant 1 message Mar 16, 2004 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390 (7/10): tape driver fixes.

tape driver fixes:
- Link from ccw device to class device in sysfs.
- Cosmetic changes.
- Add copyright statements.

diffstat:

 drivers/s390/char/Makefile     |    4 -
 drivers/s390/char/tape.h       |    4 -
 drivers/s390/char/tape_char.c  |   47 ++++++-------------
 drivers/s390/char/tape_class.c |  101 ++++++++++++++++++++++++++---------------
 drivers/s390/char/tape_class.h |   41 +++++++++-------
 5 files changed, 109 insertions(+), 88 deletions(-)
drivers/s390/char/Makefile +2 -2
diff -urN linux-2.6/drivers/s390/char/Makefile linux-2.6-s390/drivers/s390/char/Makefile
@@ -18,6 +18,6 @@
 
 tape-$(CONFIG_S390_TAPE_BLOCK) += tape_block.o
 tape-$(CONFIG_PROC_FS) += tape_proc.o
-tape-objs := tape_core.o tape_std.o tape_char.o tape_class.o $(tape-y)
-obj-$(CONFIG_S390_TAPE) += tape.o
+tape-objs := tape_core.o tape_std.o tape_char.o $(tape-y)
+obj-$(CONFIG_S390_TAPE) += tape.o tape_class.o
 obj-$(CONFIG_S390_TAPE_34XX) += tape_34xx.o
drivers/s390/char/tape.h +2 -2
diff -urN linux-2.6/drivers/s390/char/tape.h linux-2.6-s390/drivers/s390/char/tape.h
@@ -199,8 +199,8 @@
 	struct list_head		node;
 
 	struct ccw_device *		cdev;
-	struct cdev *			nt;
-	struct cdev *			rt;
+	struct tape_class_device *	nt;
+	struct tape_class_device *	rt;
 
 	/* Device discipline information. */
 	struct tape_discipline *	discipline;
drivers/s390/char/tape_char.c +16 -31

72 lines not on this page · raw message

drivers/s390/char/tape_class.c +65 -36

149 lines not on this page · raw message

drivers/s390/char/tape_class.h +24 -17

73 lines not on this page · raw message