usb: gadget: pxa27x_udc: delete pullup operation at .udc_start and .udc_stop
authorPeter Chen <peter.chen@freescale.com>
Mon, 12 Jan 2015 08:37:55 +0000 (16:37 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:24:15 +0000 (12:24 -0600)
UDC core has already done it before .udc_stop and after .udc_start.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/pxa27x_udc.c

index c61a896061faf7bbf79f5a143f6539fb2c87bb39..6a855fc9bd84cf7716785e7ba62a60b7cb556882 100644 (file)
@@ -1809,7 +1809,6 @@ static int pxa27x_udc_start(struct usb_gadget *g,
 
        /* first hook up the driver ... */
        udc->driver = driver;
-       dplus_pullup(udc, 1);
 
        if (!IS_ERR_OR_NULL(udc->transceiver)) {
                retval = otg_set_peripheral(udc->transceiver->otg,
@@ -1862,7 +1861,6 @@ static int pxa27x_udc_stop(struct usb_gadget *g)
 
        stop_activity(udc, NULL);
        udc_disable(udc);
-       dplus_pullup(udc, 0);
 
        udc->driver = NULL;