summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2013-09-25 10:29:43 +0400
committerFelipe Balbi <balbi@ti.com>2013-11-26 20:35:15 +0400
commite0a6104e066595bcf791381a23b568ab0a890707 (patch)
tree79df174d443ad003245b8a03efb6027caf3b226d
parent2df6761e5eca9a810050a15062ae8abce1bbae41 (diff)
downloadlinux-e0a6104e066595bcf791381a23b568ab0a890707.tar.xz
usb: dwc3: dwc3-omap: return PROBE_DEFER if extcon is missing and found in dt
Due to inter dependencies of I2C and extcon by the time dwc3 checks for extcon device its not registered especially in case of J6. In O5 the vbus regulator save us from getting to this point. So for tiime being return PROBE_DEFER if extcon is enabled in dt. Signed-off-by: George Cherian <george.cherian@ti.com>
-rw-r--r--drivers/usb/dwc3/dwc3-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index 7f7ea62e961b..daab0ad10b25 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -535,7 +535,7 @@ static int dwc3_omap_probe(struct platform_device *pdev)
edev = of_extcon_get_extcon_dev(dev, 0);
if (IS_ERR(edev)) {
dev_vdbg(dev, "couldn't get extcon device\n");
- ret = PTR_ERR(edev);
+ ret = -EPROBE_DEFER;
goto err2;
}