projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee51c3
)
usb: phy: omap-otg: Fix missing platform_set_drvdata() in omap_otg_probe()
author
Wei Yongjun
<weiyj.lk@gmail.com>
Tue, 26 Jul 2016 14:48:39 +0000
(14:48 +0000)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 11 Aug 2016 12:09:45 +0000
(15:09 +0300)
Add missing platform_set_drvdata() in omap_otg_probe(), otherwise
calling platform_get_drvdata() in remove returns NULL.
This is detected by Coccinelle semantic patch.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-omap-otg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/phy/phy-omap-otg.c
b/drivers/usb/phy/phy-omap-otg.c
index 6f6d2a7fd5a079149c6587c709b473582b3e5458..6523af4f8f93fc48ab8d9b26b409719a61486e24 100644
(file)
--- a/
drivers/usb/phy/phy-omap-otg.c
+++ b/
drivers/usb/phy/phy-omap-otg.c
@@
-140,6
+140,8
@@
static int omap_otg_probe(struct platform_device *pdev)
(rev >> 4) & 0xf, rev & 0xf, config->extcon, otg_dev->id,
otg_dev->vbus);
+ platform_set_drvdata(pdev, otg_dev);
+
return 0;
}