summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/udc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/chipidea/udc.h')
-rw-r--r--drivers/usb/chipidea/udc.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/drivers/usb/chipidea/udc.h b/drivers/usb/chipidea/udc.h
index 82c9e3e772f7..3a9e6694f327 100644
--- a/drivers/usb/chipidea/udc.h
+++ b/drivers/usb/chipidea/udc.h
@@ -71,26 +71,16 @@ struct ci13xxx_req {
};
#ifdef CONFIG_USB_CHIPIDEA_UDC
-irqreturn_t udc_irq(int irq, void *data);
-int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev,
- void __iomem *regs, struct ci13xxx **_udc);
-void udc_remove(struct ci13xxx *udc);
+
+int ci_hdrc_gadget_init(struct ci13xxx *ci);
+
#else
-static inline irqreturn_t udc_irq(int irq, void *data)
-{
- return IRQ_NONE;
-}
-static inline
-int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev,
- void __iomem *regs, struct ci13xxx **_udc)
+static inline int ci_hdrc_gadget_init(struct ci13xxx *ci)
{
- return -ENODEV;
+ return -ENXIO;
}
-static inline void udc_remove(struct ci13xxx *udc)
-{
-}
#endif
#endif /* __DRIVERS_USB_CHIPIDEA_UDC_H */
OpenPOWER on IntegriCloud