From: Aaro Koskinen Date: Mon, 2 Jan 2017 20:53:55 +0000 (+0200) Subject: USB: ohci-omap: defer probe if PHY is missing X-Git-Tag: v4.11-rc1~119^2~103 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bf2b419aa19498913c7175ba0fb1becd9b946b3b;p=karo-tx-linux.git USB: ohci-omap: defer probe if PHY is missing Defer probe if PHY is missing. E.g. on Nokia 770 several modules needs to be loaded to get the PHY going and ohci-omap should wait for those. Signed-off-by: Aaro Koskinen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index b08e385399b9..a4d814b7f380 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -227,8 +227,7 @@ static int ohci_omap_reset(struct usb_hcd *hcd) return status; } } else { - dev_err(hcd->self.controller, "can't find phy\n"); - return -ENODEV; + return -EPROBE_DEFER; } ohci->start_hnp = start_hnp; }