diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-17 15:21:19 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 20:09:20 +0300 |
commit | 2d2428c027c6b2a815f4a90aa6883c02088e1e5e (patch) | |
tree | 6e30ec3b082034bd30b8282c8b06dc86047fbbec /drivers/usb/gadget/mv_u3d_core.c | |
parent | 1b635f0ff3f7fcc15e2a5fdc430c99f88904d3c6 (diff) | |
download | op-kernel-dev-2d2428c027c6b2a815f4a90aa6883c02088e1e5e.zip op-kernel-dev-2d2428c027c6b2a815f4a90aa6883c02088e1e5e.tar.gz |
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: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/mv_u3d_core.c')
-rw-r--r-- | drivers/usb/gadget/mv_u3d_core.c | 3 |
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 58288e9..751b17a 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: |