Tag: ec57fcd042a9448096705847290d4e4e97fbb7e1

usb: phy: omap-otg: Fix missing platform_set_drvdata() in omap_otg_probe()

Author: Wei Yongjun <weiyj.lk@gmail.com> 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 Signed-off-by: Felipe Balbi — drivers/usb/phy/phy-omap-otg.c | 2 ++ 1 file changed, 2 insertions(+)   diff –git a/drivers/usb/phy/phy-omap-otg.c b/drivers/usb/phy/phy-omap-otg.c index 6f6d2a7..6523af4 100644 — a/drivers/usb/phy/phy-omap-otg.c +++ b/drivers/usb/phy/phy-omap-otg.c @@ -140,6 +140,8 @@ …

Continue reading