]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: phy: omap-otg: Fix missing platform_set_drvdata() in omap_otg_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 26 Jul 2016 14:48:39 +0000 (14:48 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 11 Aug 2016 12:09:45 +0000 (15:09 +0300)
commitec57fcd042a9448096705847290d4e4e97fbb7e1
tree4c15ed11d9652991c43ca3415a8d1390c7dd792b
parentcee51c33f52ebf673a088a428ac0fecc33ab77fa
usb: phy: omap-otg: Fix missing platform_set_drvdata() in omap_otg_probe()

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