diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-01-15 22:50:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 21:37:12 +0300 |
commit | 80f745fb1b0fb11383cbb8df2c36aaaa0399b6e6 (patch) | |
tree | 4b8f1c9d98f97bec839c95d0498259af8b8627c5 /include/linux/usb.h | |
parent | 4b315627e6b894156e235ac905786e7d46aab2e6 (diff) | |
download | linux-80f745fb1b0fb11383cbb8df2c36aaaa0399b6e6.tar.xz |
USB: add the sysfs driver name to all modules
This adds the module name to all USB drivers, if they are built into the
kernel or not. It will show up in /sys/modules/MODULE_NAME/drivers/
Cc: Kay Sievers <kay.sievers@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index aab5b1b72021..733f38de4978 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -868,10 +868,11 @@ struct usb_class_driver { * use these in module_init()/module_exit() * and don't forget MODULE_DEVICE_TABLE(usb, ...) */ -extern int usb_register_driver(struct usb_driver *, struct module *); +extern int usb_register_driver(struct usb_driver *, struct module *, + const char *); static inline int usb_register(struct usb_driver *driver) { - return usb_register_driver(driver, THIS_MODULE); + return usb_register_driver(driver, THIS_MODULE, KBUILD_MODNAME); } extern void usb_deregister(struct usb_driver *); |