aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-01-15 14:50:02 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-02-07 13:37:12 -0500
commit80f745fb1b0fb11383cbb8df2c36aaaa0399b6e6 (patch)
tree4b8f1c9d98f97bec839c95d0498259af8b8627c5 /include/linux/usb.h
parent4b315627e6b894156e235ac905786e7d46aab2e6 (diff)
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.h5
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 {
868 * use these in module_init()/module_exit() 868 * use these in module_init()/module_exit()
869 * and don't forget MODULE_DEVICE_TABLE(usb, ...) 869 * and don't forget MODULE_DEVICE_TABLE(usb, ...)
870 */ 870 */
871extern int usb_register_driver(struct usb_driver *, struct module *); 871extern int usb_register_driver(struct usb_driver *, struct module *,
872 const char *);
872static inline int usb_register(struct usb_driver *driver) 873static inline int usb_register(struct usb_driver *driver)
873{ 874{
874 return usb_register_driver(driver, THIS_MODULE); 875 return usb_register_driver(driver, THIS_MODULE, KBUILD_MODNAME);
875} 876}
876extern void usb_deregister(struct usb_driver *); 877extern void usb_deregister(struct usb_driver *);
877 878