diff options
Diffstat (limited to 'drivers/usb/dwc_otg_310/dwc_otg_driver.c')
-rw-r--r-- | drivers/usb/dwc_otg_310/dwc_otg_driver.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/usb/dwc_otg_310/dwc_otg_driver.c b/drivers/usb/dwc_otg_310/dwc_otg_driver.c index 7bcf93dbe905..e903bb30f367 100644 --- a/drivers/usb/dwc_otg_310/dwc_otg_driver.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_driver.c @@ -992,6 +992,12 @@ static int host20_driver_probe(struct platform_device *_dev) return -EINVAL; } + if (pldata->is_probed) { + if (pldata->is_probed() == 0) { + return -EPROBE_DEFER; + } + } + if (pldata->hw_init) pldata->hw_init(); @@ -1381,6 +1387,12 @@ static int otg20_driver_probe(struct platform_device *_dev) return -EINVAL; } + if (pldata->is_probed) { + if (pldata->is_probed() == 0) { + return -EPROBE_DEFER; + } + } + if (pldata->hw_init) pldata->hw_init(); |