diff options
Diffstat (limited to 'drivers/usb/gadget/zero.c')
-rw-r--r-- | drivers/usb/gadget/zero.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index cf353920bb1c..6d16db9d9d2d 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
@@ -264,7 +264,7 @@ static void zero_resume(struct usb_composite_dev *cdev) | |||
264 | 264 | ||
265 | /*-------------------------------------------------------------------------*/ | 265 | /*-------------------------------------------------------------------------*/ |
266 | 266 | ||
267 | static int __ref zero_bind(struct usb_composite_dev *cdev) | 267 | static int __init zero_bind(struct usb_composite_dev *cdev) |
268 | { | 268 | { |
269 | int gcnum; | 269 | int gcnum; |
270 | struct usb_gadget *gadget = cdev->gadget; | 270 | struct usb_gadget *gadget = cdev->gadget; |
@@ -340,7 +340,6 @@ static struct usb_composite_driver zero_driver = { | |||
340 | .name = "zero", | 340 | .name = "zero", |
341 | .dev = &device_desc, | 341 | .dev = &device_desc, |
342 | .strings = dev_strings, | 342 | .strings = dev_strings, |
343 | .bind = zero_bind, | ||
344 | .unbind = zero_unbind, | 343 | .unbind = zero_unbind, |
345 | .suspend = zero_suspend, | 344 | .suspend = zero_suspend, |
346 | .resume = zero_resume, | 345 | .resume = zero_resume, |
@@ -351,7 +350,7 @@ MODULE_LICENSE("GPL"); | |||
351 | 350 | ||
352 | static int __init init(void) | 351 | static int __init init(void) |
353 | { | 352 | { |
354 | return usb_composite_register(&zero_driver); | 353 | return usb_composite_probe(&zero_driver, zero_bind); |
355 | } | 354 | } |
356 | module_init(init); | 355 | module_init(init); |
357 | 356 | ||