From: Peter Chen Date: Mon, 12 Jan 2015 08:37:56 +0000 (+0800) Subject: usb: gadget: pxa27x_udc: delete pullup operation at .udc_start and .udc_stop X-Git-Tag: firefly_0821_release~176^2~2323^2^2~144 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=14d19d9f05184c38001be47b7567c8d53fce88ff;p=firefly-linux-kernel-4.4.55.git usb: gadget: pxa27x_udc: delete pullup operation at .udc_start and .udc_stop UDC core has already done it before .udc_stop and after .udc_start. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index 8550b2d5db32..f6cbe667ce39 100644 --- a/drivers/usb/gadget/udc/pxa25x_udc.c +++ b/drivers/usb/gadget/udc/pxa25x_udc.c @@ -1272,7 +1272,6 @@ static int pxa25x_udc_start(struct usb_gadget *g, goto bind_fail; } - pullup(dev); dump_state(dev); return 0; bind_fail: @@ -1339,7 +1338,6 @@ static int pxa25x_udc_stop(struct usb_gadget*g) local_irq_disable(); dev->pullup = 0; - pullup(dev); stop_activity(dev, NULL); local_irq_enable();