usb: dwc3: fix missing platform_set_drvdata() in dwc3_of_simple_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 26 Jul 2016 14:47:00 +0000 (14:47 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 11 Aug 2016 12:09:45 +0000 (15:09 +0300)
commit4c4f106c032ff32b89c98a4d819e68e6e643c14e
tree0ab2197847c57980b3a94a515e75809c4a4ce9a4
parentec57fcd042a9448096705847290d4e4e97fbb7e1
usb: dwc3: fix missing platform_set_drvdata() in dwc3_of_simple_probe()

Add missing platform_set_drvdata() in dwc3_of_simple_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/dwc3/dwc3-of-simple.c