aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_gadget.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-05-05 06:11:21 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-06 21:16:39 -0400
commit3df004532582d0cc721da0df28311bcedd639724 (patch)
treed9ee3de5a34e5a1dcfc4a67043336ddd7cbe1664 /drivers/usb/musb/musb_gadget.c
parent9be0392989306361d4a63a06a8ee281efbead548 (diff)
usb: fix building musb drivers
Commit 3dacdf11 "usb: factor out state_string() on otg drivers" broke building musb drivers since there is already another otg_state_string() function in musb drivers, but with different prototype. Fix musb drivers to use common otg_state_string(), too. Also provide a nop for otg_state_string() if CONFIG_USB_OTG_UTILS is not defined. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r--drivers/usb/musb/musb_gadget.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 6dfbf9ffd7a6..3d799195c8b4 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1556,7 +1556,8 @@ static int musb_gadget_wakeup(struct usb_gadget *gadget)
1556 status = 0; 1556 status = 0;
1557 goto done; 1557 goto done;
1558 default: 1558 default:
1559 DBG(2, "Unhandled wake: %s\n", otg_state_string(musb)); 1559 DBG(2, "Unhandled wake: %s\n",
1560 otg_state_string(musb->xceiv->state));
1560 goto done; 1561 goto done;
1561 } 1562 }
1562 1563
@@ -2039,7 +2040,7 @@ void musb_g_resume(struct musb *musb)
2039 break; 2040 break;
2040 default: 2041 default:
2041 WARNING("unhandled RESUME transition (%s)\n", 2042 WARNING("unhandled RESUME transition (%s)\n",
2042 otg_state_string(musb)); 2043 otg_state_string(musb->xceiv->state));
2043 } 2044 }
2044} 2045}
2045 2046
@@ -2069,7 +2070,7 @@ void musb_g_suspend(struct musb *musb)
2069 * A_PERIPHERAL may need care too 2070 * A_PERIPHERAL may need care too
2070 */ 2071 */
2071 WARNING("unhandled SUSPEND transition (%s)\n", 2072 WARNING("unhandled SUSPEND transition (%s)\n",
2072 otg_state_string(musb)); 2073 otg_state_string(musb->xceiv->state));
2073 } 2074 }
2074} 2075}
2075 2076
@@ -2104,7 +2105,7 @@ void musb_g_disconnect(struct musb *musb)
2104 default: 2105 default:
2105#ifdef CONFIG_USB_MUSB_OTG 2106#ifdef CONFIG_USB_MUSB_OTG
2106 DBG(2, "Unhandled disconnect %s, setting a_idle\n", 2107 DBG(2, "Unhandled disconnect %s, setting a_idle\n",
2107 otg_state_string(musb)); 2108 otg_state_string(musb->xceiv->state));
2108 musb->xceiv->state = OTG_STATE_A_IDLE; 2109 musb->xceiv->state = OTG_STATE_A_IDLE;
2109 MUSB_HST_MODE(musb); 2110 MUSB_HST_MODE(musb);
2110 break; 2111 break;