diff options
Diffstat (limited to 'drivers/usb/gadget/pxa25x_udc.c')
-rw-r--r-- | drivers/usb/gadget/pxa25x_udc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c index b86518e49415..df681b5cd695 100644 --- a/drivers/usb/gadget/pxa25x_udc.c +++ b/drivers/usb/gadget/pxa25x_udc.c | |||
@@ -1301,7 +1301,8 @@ fail: | |||
1301 | 1301 | ||
1302 | /* connect to bus through transceiver */ | 1302 | /* connect to bus through transceiver */ |
1303 | if (dev->transceiver) { | 1303 | if (dev->transceiver) { |
1304 | retval = otg_set_peripheral(dev->transceiver, &dev->gadget); | 1304 | retval = otg_set_peripheral(dev->transceiver->otg, |
1305 | &dev->gadget); | ||
1305 | if (retval) { | 1306 | if (retval) { |
1306 | DMSG("can't bind to transceiver\n"); | 1307 | DMSG("can't bind to transceiver\n"); |
1307 | if (driver->unbind) | 1308 | if (driver->unbind) |
@@ -1360,7 +1361,7 @@ static int pxa25x_stop(struct usb_gadget_driver *driver) | |||
1360 | local_irq_enable(); | 1361 | local_irq_enable(); |
1361 | 1362 | ||
1362 | if (dev->transceiver) | 1363 | if (dev->transceiver) |
1363 | (void) otg_set_peripheral(dev->transceiver, NULL); | 1364 | (void) otg_set_peripheral(dev->transceiver->otg, NULL); |
1364 | 1365 | ||
1365 | driver->unbind(&dev->gadget); | 1366 | driver->unbind(&dev->gadget); |
1366 | dev->gadget.dev.driver = NULL; | 1367 | dev->gadget.dev.driver = NULL; |