aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-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