aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 8d5829936bc4..3d05c63451a8 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -625,7 +625,11 @@ struct usb_class_driver {
625 * use these in module_init()/module_exit() 625 * use these in module_init()/module_exit()
626 * and don't forget MODULE_DEVICE_TABLE(usb, ...) 626 * and don't forget MODULE_DEVICE_TABLE(usb, ...)
627 */ 627 */
628extern int usb_register(struct usb_driver *); 628int usb_register_driver(struct usb_driver *, struct module *);
629static inline int usb_register(struct usb_driver *driver)
630{
631 return usb_register_driver(driver, THIS_MODULE);
632}
629extern void usb_deregister(struct usb_driver *); 633extern void usb_deregister(struct usb_driver *);
630 634
631extern int usb_register_dev(struct usb_interface *intf, 635extern int usb_register_dev(struct usb_interface *intf,