diff options
Diffstat (limited to 'drivers/usb/musb/musb_gadget_ep0.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget_ep0.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_gadget_ep0.c b/drivers/usb/musb/musb_gadget_ep0.c index b2faff235507..9378b359c1f0 100644 --- a/drivers/usb/musb/musb_gadget_ep0.c +++ b/drivers/usb/musb/musb_gadget_ep0.c | |||
@@ -88,7 +88,6 @@ static int service_tx_status_request( | |||
88 | case USB_RECIP_DEVICE: | 88 | case USB_RECIP_DEVICE: |
89 | result[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED; | 89 | result[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED; |
90 | result[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; | 90 | result[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; |
91 | #ifdef CONFIG_USB_MUSB_OTG | ||
92 | if (musb->g.is_otg) { | 91 | if (musb->g.is_otg) { |
93 | result[0] |= musb->g.b_hnp_enable | 92 | result[0] |= musb->g.b_hnp_enable |
94 | << USB_DEVICE_B_HNP_ENABLE; | 93 | << USB_DEVICE_B_HNP_ENABLE; |
@@ -97,7 +96,6 @@ static int service_tx_status_request( | |||
97 | result[0] |= musb->g.a_hnp_support | 96 | result[0] |= musb->g.a_hnp_support |
98 | << USB_DEVICE_A_HNP_SUPPORT; | 97 | << USB_DEVICE_A_HNP_SUPPORT; |
99 | } | 98 | } |
100 | #endif | ||
101 | break; | 99 | break; |
102 | 100 | ||
103 | case USB_RECIP_INTERFACE: | 101 | case USB_RECIP_INTERFACE: |
@@ -392,7 +390,6 @@ __acquires(musb->lock) | |||
392 | if (handled > 0) | 390 | if (handled > 0) |
393 | musb->test_mode = true; | 391 | musb->test_mode = true; |
394 | break; | 392 | break; |
395 | #ifdef CONFIG_USB_MUSB_OTG | ||
396 | case USB_DEVICE_B_HNP_ENABLE: | 393 | case USB_DEVICE_B_HNP_ENABLE: |
397 | if (!musb->g.is_otg) | 394 | if (!musb->g.is_otg) |
398 | goto stall; | 395 | goto stall; |
@@ -409,7 +406,6 @@ __acquires(musb->lock) | |||
409 | goto stall; | 406 | goto stall; |
410 | musb->g.a_alt_hnp_support = 1; | 407 | musb->g.a_alt_hnp_support = 1; |
411 | break; | 408 | break; |
412 | #endif | ||
413 | case USB_DEVICE_DEBUG_MODE: | 409 | case USB_DEVICE_DEBUG_MODE: |
414 | handled = 0; | 410 | handled = 0; |
415 | break; | 411 | break; |