mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 00:40:55 +07:00
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>
This commit is contained in:
parent
cee51c33f5
commit
ec57fcd042
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user