Skip to contentSkip to conversation

dasd: kill dynamic ioctl registration

PATCH In review Christoph Hellwig 1 participant 1 message Feb 12, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 dasd: kill dynamic ioctl registration

Now that there are no more users of the awkward dynamic ioctl hack we can remove the code to support it.

 dasd_int.h   |   11 ---------
 dasd_ioctl.c |   69 -----------------------------------------------------------
 2 files changed, 80 deletions(-)
drivers/s390/block/dasd_int.h +0 -11
Index: linux-2.6.16-rc2-mm1/drivers/s390/block/dasd_int.h
===================================================================
@@ -68,15 +68,6 @@
  */
 struct dasd_device;
 
-typedef int (*dasd_ioctl_fn_t) (struct block_device *bdev, int no, long args);
-
-struct dasd_ioctl {
-	struct list_head list;
-	struct module *owner;
-	int no;
-	dasd_ioctl_fn_t handler;
-};
-
 typedef enum {
 	dasd_era_fatal = -1,	/* no chance to recover		     */
 	dasd_era_none = 0,	/* don't recover, everything alright */
@@ -522,8 +513,6 @@
 void dasd_destroy_partitions(struct dasd_device *);
 
 /* externals in dasd_ioctl.c */
-int  dasd_ioctl_no_register(struct module *, int, dasd_ioctl_fn_t);
-int  dasd_ioctl_no_unregister(struct module *, int, dasd_ioctl_fn_t);
 int  dasd_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
 long dasd_compat_ioctl(struct file *, unsigned int, unsigned long);
 
drivers/s390/block/dasd_ioctl.c +0 -69

90 lines not on this page · raw message