Commit f0447a690e2cfe005a605253cf6bdfa9b9fd5d6e
Committed by
Samuel Ortiz
1 parent
cbb8c220e7
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mfd: Move omap-usb-host usbhs init before allocing child dev
There could be possible race condition where the host dev's are alloced and added to platform dev just before usbhs_init. Just move usbhs_init before adding child dev. CC: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Govindraj.R <govindraj.raja@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
drivers/mfd/omap-usb-host.c
... | ... | @@ -799,13 +799,12 @@ |
799 | 799 | |
800 | 800 | platform_set_drvdata(pdev, omap); |
801 | 801 | |
802 | + omap_usbhs_init(dev); | |
802 | 803 | ret = omap_usbhs_alloc_children(pdev); |
803 | 804 | if (ret) { |
804 | 805 | dev_err(dev, "omap_usbhs_alloc_children failed\n"); |
805 | 806 | goto err_alloc; |
806 | 807 | } |
807 | - | |
808 | - omap_usbhs_init(dev); | |
809 | 808 | |
810 | 809 | goto end_probe; |
811 | 810 |