summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-17 09:51:20 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-17 17:14:51 (GMT)
commit02b6b4ed3e767cc9e69dce44c2358cf703cdc913 (patch)
tree226b2611be236ce47dc4f0fdac6b379608280242
parente6e93ccf04802499af5a67d01ff59de7d831b25f (diff)
downloadlinux-fsl-qoriq-02b6b4ed3e767cc9e69dce44c2358cf703cdc913.tar.xz
usb: gadget: pxa27x_udc: Remove redundant platform_set_drvdata()
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/gadget/pxa27x_udc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index 6b4c7d9..41cea95 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -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);