diff options
Diffstat (limited to 'include/usb/ehci.h')
-rw-r--r-- | include/usb/ehci.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/usb/ehci.h b/include/usb/ehci.h index 1008e92f02..9ca9252eb1 100644 --- a/include/usb/ehci.h +++ b/include/usb/ehci.h @@ -19,12 +19,26 @@ struct ehci_data { void *drvdata; }; +struct ehci_host; + #ifdef CONFIG_USB_EHCI -int ehci_register(struct device_d *dev, struct ehci_data *data); +struct ehci_host *ehci_register(struct device_d *dev, struct ehci_data *data); +void ehci_unregister(struct ehci_host *); +int ehci_detect(struct ehci_host *ehci); #else -static inline int ehci_register(struct device_d *dev, struct ehci_data *data) +static inline struct ehci_host *ehci_register(struct device_d *dev, + struct ehci_data *data) +{ + return ERR_PTR(-ENOSYS); +} + +static inline void ehci_unregister(struct ehci_host *ehci) +{ +} + +static inline int ehci_detect(struct ehci_host *ehci) { - return -ENOSYS; + return 0; } #endif |