diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-17 05:51:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-17 13:14:51 -0400 |
commit | 02b6b4ed3e767cc9e69dce44c2358cf703cdc913 (patch) | |
tree | 226b2611be236ce47dc4f0fdac6b379608280242 | |
parent | e6e93ccf04802499af5a67d01ff59de7d831b25f (diff) |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c index 6b4c7d95853f..41cea9566ac8 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) | |||
2505 | usb_put_phy(udc->transceiver); | 2505 | usb_put_phy(udc->transceiver); |
2506 | 2506 | ||
2507 | udc->transceiver = NULL; | 2507 | udc->transceiver = NULL; |
2508 | platform_set_drvdata(_dev, NULL); | ||
2509 | the_controller = NULL; | 2508 | the_controller = NULL; |
2510 | clk_put(udc->clk); | 2509 | clk_put(udc->clk); |
2511 | iounmap(udc->regs); | 2510 | iounmap(udc->regs); |