projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b635f0
)
usb: gadget: mv_u3d_core: Remove redundant platform_set_drvdata()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 17 May 2013 09:51:19 +0000
(15:21 +0530)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 28 May 2013 17:09:20 +0000
(20:09 +0300)
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>
drivers/usb/gadget/mv_u3d_core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/mv_u3d_core.c
b/drivers/usb/gadget/mv_u3d_core.c
index 58288e9cf728e2e34a71e67183edeb6cf0532118..751b17af68f0657d14ef93c0aa0995c8c313bce5 100644
(file)
--- 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: