summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-17 13:51:19 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-17 21:14:51 +0400
commite6e93ccf04802499af5a67d01ff59de7d831b25f (patch)
tree15fa313f328a01cfc6ee6cf99376e381fddeb04b
parentb342f0969be9291d71bd8d5142d1b7f6fe9ffc3e (diff)
downloadlinux-e6e93ccf04802499af5a67d01ff59de7d831b25f.tar.xz
usb: gadget: mv_u3d_core: 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: Yu Xu <yuxu@marvell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/gadget/mv_u3d_core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/mv_u3d_core.c b/drivers/usb/gadget/mv_u3d_core.c
index 58288e9cf728..751b17af68f0 100644
--- a/drivers/usb/gadget/mv_u3d_core.c
+++ b/drivers/usb/gadget/mv_u3d_core.c
@@ -1786,8 +1786,6 @@ static int mv_u3d_remove(struct platform_device *dev)
clk_put(u3d->clk);
- platform_set_drvdata(dev, NULL);
-
kfree(u3d);
return 0;
@@ -1997,7 +1995,6 @@ err_map_cap_regs:
err_get_cap_regs:
err_get_clk:
clk_put(u3d->clk);
- platform_set_drvdata(dev, NULL);
kfree(u3d);
err_alloc_private:
err_pdata: