diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2013-03-07 18:51:44 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:18:14 +0200 |
commit | 2ba7943af0f0cca5a069cd3aff807815bc76fff1 (patch) | |
tree | 4991deda3224f2f73524a1e44f6443e1f8264f42 /include/linux/usb | |
parent | ddff14f1ab9b55b73ba59126ef4a10966725fc9d (diff) | |
download | linux-3.10-2ba7943af0f0cca5a069cd3aff807815bc76fff1.tar.gz linux-3.10-2ba7943af0f0cca5a069cd3aff807815bc76fff1.tar.bz2 linux-3.10-2ba7943af0f0cca5a069cd3aff807815bc76fff1.zip |
usb: dwc3: dwc3-omap: return -EPROBE_DEFER if probe has not yet executed
return -EPROBE_DEFER from dwc3_omap_mailbox in dwc3-omap.c, if the probe of
dwc3-omap has not yet been executed or failed.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/dwc3-omap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/usb/dwc3-omap.h b/include/linux/usb/dwc3-omap.h index 51eae14477f..5615f4d8272 100644 --- a/include/linux/usb/dwc3-omap.h +++ b/include/linux/usb/dwc3-omap.h @@ -19,11 +19,11 @@ enum omap_dwc3_vbus_id_status { }; #if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE)) -extern void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); +extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); #else -static inline void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) +static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) { - return; + return -ENODEV; } #endif |