usb: gadget: pxa27x_udc: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 17 May 2013 09:51:20 +0000 (15:21 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 17:09:32 +0000 (20:09 +0300)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/pxa27x_udc.c

index 6b4c7d95853f2ee0caead3191b22c0e017153c9b..41cea9566ac8bba0e194dc8b2f55668fa1d1707e 100644 (file)
@@ -2505,7 +2505,6 @@ static int pxa_udc_remove(struct platform_device *_dev)
        usb_put_phy(udc->transceiver);
 
        udc->transceiver = NULL;
-       platform_set_drvdata(_dev, NULL);
        the_controller = NULL;
        clk_put(udc->clk);
        iounmap(udc->regs);