aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-omap-otg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/phy/phy-omap-otg.c')
-rw-r--r--drivers/usb/phy/phy-omap-otg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-omap-otg.c b/drivers/usb/phy/phy-omap-otg.c
index ee0863c6553e..6e6ef8c0bc7e 100644
--- a/drivers/usb/phy/phy-omap-otg.c
+++ b/drivers/usb/phy/phy-omap-otg.c
@@ -95,8 +95,8 @@ static int omap_otg_probe(struct platform_device *pdev)
return -ENODEV;
extcon = extcon_get_extcon_dev(config->extcon);
- if (!extcon)
- return -EPROBE_DEFER;
+ if (IS_ERR(extcon))
+ return PTR_ERR(extcon);
otg_dev = devm_kzalloc(&pdev->dev, sizeof(*otg_dev), GFP_KERNEL);
if (!otg_dev)