summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-06 13:37:23 +0200
committerFelipe Balbi <balbi@ti.com>2013-05-15 16:21:52 +0200
commit2673976f7a80dfdf1b590e40c773aee01e62ada7 (patch)
tree51fd9436820d5e31bd975e64b4166d53d16d895e
parentusb: gadget: f_uac2: Remove redundant platform_set_drvdata() (diff)
downloadlinux-2673976f7a80dfdf1b590e40c773aee01e62ada7.tar.xz
linux-2673976f7a80dfdf1b590e40c773aee01e62ada7.zip
usb: gadget: imx_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: Darius Augulis <augulis.darius@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/imx_udc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/imx_udc.c b/drivers/usb/gadget/imx_udc.c
index b5cebd6b0d7a..9b2d24e4c95f 100644
--- a/drivers/usb/gadget/imx_udc.c
+++ b/drivers/usb/gadget/imx_udc.c
@@ -1511,8 +1511,6 @@ static int __exit imx_udc_remove(struct platform_device *pdev)
if (pdata->exit)
pdata->exit(&pdev->dev);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}