diff options
Diffstat (limited to 'drivers/usb/gadget/gmidi.c')
-rw-r--r-- | drivers/usb/gadget/gmidi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 1b413a5cc3f6..0ab7e141d494 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
@@ -1157,7 +1157,7 @@ fail: | |||
1157 | /* | 1157 | /* |
1158 | * Creates an output endpoint, and initializes output ports. | 1158 | * Creates an output endpoint, and initializes output ports. |
1159 | */ | 1159 | */ |
1160 | static int __ref gmidi_bind(struct usb_gadget *gadget) | 1160 | static int __init gmidi_bind(struct usb_gadget *gadget) |
1161 | { | 1161 | { |
1162 | struct gmidi_device *dev; | 1162 | struct gmidi_device *dev; |
1163 | struct usb_ep *in_ep, *out_ep; | 1163 | struct usb_ep *in_ep, *out_ep; |
@@ -1292,7 +1292,6 @@ static void gmidi_resume(struct usb_gadget *gadget) | |||
1292 | static struct usb_gadget_driver gmidi_driver = { | 1292 | static struct usb_gadget_driver gmidi_driver = { |
1293 | .speed = USB_SPEED_FULL, | 1293 | .speed = USB_SPEED_FULL, |
1294 | .function = (char *)longname, | 1294 | .function = (char *)longname, |
1295 | .bind = gmidi_bind, | ||
1296 | .unbind = gmidi_unbind, | 1295 | .unbind = gmidi_unbind, |
1297 | 1296 | ||
1298 | .setup = gmidi_setup, | 1297 | .setup = gmidi_setup, |
@@ -1309,7 +1308,7 @@ static struct usb_gadget_driver gmidi_driver = { | |||
1309 | 1308 | ||
1310 | static int __init gmidi_init(void) | 1309 | static int __init gmidi_init(void) |
1311 | { | 1310 | { |
1312 | return usb_gadget_register_driver(&gmidi_driver); | 1311 | return usb_gadget_probe_driver(&gmidi_driver, gmidi_bind); |
1313 | } | 1312 | } |
1314 | module_init(gmidi_init); | 1313 | module_init(gmidi_init); |
1315 | 1314 | ||