aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/udc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-11-26 00:44:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-26 12:28:12 -0500
commit5b1573005a91dc448e6919d6bec076bedc7e1919 (patch)
tree29a77bb96d1f03e026b67fd0db57e7f927b383db /drivers/usb/chipidea/udc.c
parentcdd278f21eea55412dd0c5bc468bbdfb0639879b (diff)
usb: chipidea: parameter 'mode' isn't needed for hw_device_reset
The hw_device_reset is dedicated to be used at device mode initializaiton, so delete the parameter 'mode'. For host driver, the ehci driver will handle all things. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r--drivers/usb/chipidea/udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index bdaa7bac6f4a..4fe18ce3bd5a 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -1471,7 +1471,7 @@ static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active)
1471 if (gadget_ready) { 1471 if (gadget_ready) {
1472 if (is_active) { 1472 if (is_active) {
1473 pm_runtime_get_sync(&_gadget->dev); 1473 pm_runtime_get_sync(&_gadget->dev);
1474 hw_device_reset(ci, USBMODE_CM_DC); 1474 hw_device_reset(ci);
1475 hw_device_state(ci, ci->ep0out->qh.dma); 1475 hw_device_state(ci, ci->ep0out->qh.dma);
1476 usb_gadget_set_state(_gadget, USB_STATE_POWERED); 1476 usb_gadget_set_state(_gadget, USB_STATE_POWERED);
1477 } else { 1477 } else {
@@ -1660,7 +1660,7 @@ static int ci_udc_start(struct usb_gadget *gadget,
1660 pm_runtime_get_sync(&ci->gadget.dev); 1660 pm_runtime_get_sync(&ci->gadget.dev);
1661 if (ci->vbus_active) { 1661 if (ci->vbus_active) {
1662 spin_lock_irqsave(&ci->lock, flags); 1662 spin_lock_irqsave(&ci->lock, flags);
1663 hw_device_reset(ci, USBMODE_CM_DC); 1663 hw_device_reset(ci);
1664 } else { 1664 } else {
1665 pm_runtime_put_sync(&ci->gadget.dev); 1665 pm_runtime_put_sync(&ci->gadget.dev);
1666 return retval; 1666 return retval;