diff options
| -rw-r--r-- | drivers/usb/otg/mv_otg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/otg/mv_otg.c b/drivers/usb/otg/mv_otg.c index db0d4fcdc8e2..b5fbe1452ab0 100644 --- a/drivers/usb/otg/mv_otg.c +++ b/drivers/usb/otg/mv_otg.c | |||
| @@ -202,6 +202,7 @@ static void mv_otg_init_irq(struct mv_otg *mvotg) | |||
| 202 | 202 | ||
| 203 | static void mv_otg_start_host(struct mv_otg *mvotg, int on) | 203 | static void mv_otg_start_host(struct mv_otg *mvotg, int on) |
| 204 | { | 204 | { |
| 205 | #ifdef CONFIG_USB | ||
| 205 | struct otg_transceiver *otg = &mvotg->otg; | 206 | struct otg_transceiver *otg = &mvotg->otg; |
| 206 | struct usb_hcd *hcd; | 207 | struct usb_hcd *hcd; |
| 207 | 208 | ||
| @@ -216,6 +217,7 @@ static void mv_otg_start_host(struct mv_otg *mvotg, int on) | |||
| 216 | usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); | 217 | usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); |
| 217 | else | 218 | else |
| 218 | usb_remove_hcd(hcd); | 219 | usb_remove_hcd(hcd); |
| 220 | #endif /* CONFIG_USB */ | ||
| 219 | } | 221 | } |
| 220 | 222 | ||
| 221 | static void mv_otg_start_periphrals(struct mv_otg *mvotg, int on) | 223 | static void mv_otg_start_periphrals(struct mv_otg *mvotg, int on) |
