aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_gadget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 41de3a903152..a9f288cd70ed 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1710,8 +1710,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
1710 return -EINVAL; 1710 return -EINVAL;
1711 1711
1712 /* driver must be initialized to support peripheral mode */ 1712 /* driver must be initialized to support peripheral mode */
1713 if (!musb || !(musb->board_mode == MUSB_OTG 1713 if (!musb) {
1714 || musb->board_mode != MUSB_OTG)) {
1715 DBG(1, "%s, no dev??\n", __func__); 1714 DBG(1, "%s, no dev??\n", __func__);
1716 return -ENODEV; 1715 return -ENODEV;
1717 } 1716 }