diff options
Diffstat (limited to 'drivers/usb/gadget/goku_udc.c')
-rw-r--r-- | drivers/usb/gadget/goku_udc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c index 9fd7886cfa9a..51037cb78604 100644 --- a/drivers/usb/gadget/goku_udc.c +++ b/drivers/usb/gadget/goku_udc.c | |||
@@ -994,7 +994,7 @@ static int goku_get_frame(struct usb_gadget *_gadget) | |||
994 | } | 994 | } |
995 | 995 | ||
996 | static int goku_start(struct usb_gadget_driver *driver, | 996 | static int goku_start(struct usb_gadget_driver *driver, |
997 | int (*bind)(struct usb_gadget *)); | 997 | int (*bind)(struct usb_gadget *, struct usb_gadget_driver *)); |
998 | static int goku_stop(struct usb_gadget_driver *driver); | 998 | static int goku_stop(struct usb_gadget_driver *driver); |
999 | 999 | ||
1000 | static const struct usb_gadget_ops goku_ops = { | 1000 | static const struct usb_gadget_ops goku_ops = { |
@@ -1348,7 +1348,7 @@ static struct goku_udc *the_controller; | |||
1348 | * the driver might get unbound. | 1348 | * the driver might get unbound. |
1349 | */ | 1349 | */ |
1350 | static int goku_start(struct usb_gadget_driver *driver, | 1350 | static int goku_start(struct usb_gadget_driver *driver, |
1351 | int (*bind)(struct usb_gadget *)) | 1351 | int (*bind)(struct usb_gadget *, struct usb_gadget_driver *)) |
1352 | { | 1352 | { |
1353 | struct goku_udc *dev = the_controller; | 1353 | struct goku_udc *dev = the_controller; |
1354 | int retval; | 1354 | int retval; |
@@ -1368,7 +1368,7 @@ static int goku_start(struct usb_gadget_driver *driver, | |||
1368 | driver->driver.bus = NULL; | 1368 | driver->driver.bus = NULL; |
1369 | dev->driver = driver; | 1369 | dev->driver = driver; |
1370 | dev->gadget.dev.driver = &driver->driver; | 1370 | dev->gadget.dev.driver = &driver->driver; |
1371 | retval = bind(&dev->gadget); | 1371 | retval = bind(&dev->gadget, driver); |
1372 | if (retval) { | 1372 | if (retval) { |
1373 | DBG(dev, "bind to driver %s --> error %d\n", | 1373 | DBG(dev, "bind to driver %s --> error %d\n", |
1374 | driver->driver.name, retval); | 1374 | driver->driver.name, retval); |