diff options
author | Govindraj.R <govindraj.raja@ti.com> | 2012-02-15 15:53:34 +0530 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-06 18:46:45 +0100 |
commit | f0447a690e2cfe005a605253cf6bdfa9b9fd5d6e (patch) | |
tree | 02b4c30c47fc239fbf870abd00dc0ab74f944b00 | |
parent | cbb8c220e70d25d1108db39d7956b08a66492fad (diff) | |
download | kernel_goldelico_gta04-f0447a690e2cfe005a605253cf6bdfa9b9fd5d6e.zip kernel_goldelico_gta04-f0447a690e2cfe005a605253cf6bdfa9b9fd5d6e.tar.gz kernel_goldelico_gta04-f0447a690e2cfe005a605253cf6bdfa9b9fd5d6e.tar.bz2 |
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>
-rw-r--r-- | drivers/mfd/omap-usb-host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 6800411..95a2e54 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -799,14 +799,13 @@ static int __devinit usbhs_omap_probe(struct platform_device *pdev) platform_set_drvdata(pdev, omap); + omap_usbhs_init(dev); ret = omap_usbhs_alloc_children(pdev); if (ret) { dev_err(dev, "omap_usbhs_alloc_children failed\n"); goto err_alloc; } - omap_usbhs_init(dev); - goto end_probe; err_alloc: |