summaryrefslogtreecommitdiffstats
path: root/drivers/usb/isp1760/isp1760-udc.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-01-21 00:56:03 +0200
committerFelipe Balbi <balbi@ti.com>2015-01-27 09:39:42 -0600
commit100832abf065bc186ae48165c16546784b90a4be (patch)
tree2c61406ba75310395682841280323d2b0256dee0 /drivers/usb/isp1760/isp1760-udc.h
parent7ef077a8ad3557f030d0407c4f56c5a0cf1e418a (diff)
downloadblackbird-op-linux-100832abf065bc186ae48165c16546784b90a4be.tar.gz
blackbird-op-linux-100832abf065bc186ae48165c16546784b90a4be.zip
usb: isp1760: Make HCD support optional
Enable compilation of the isp1760 driver in pure host mode, pure device mode, or dual-role mode. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/isp1760/isp1760-udc.h')
-rw-r--r--drivers/usb/isp1760/isp1760-udc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/isp1760/isp1760-udc.h b/drivers/usb/isp1760/isp1760-udc.h
index 4af6ba6eda86..26899ed81145 100644
--- a/drivers/usb/isp1760/isp1760-udc.h
+++ b/drivers/usb/isp1760/isp1760-udc.h
@@ -62,7 +62,7 @@ struct isp1760_ep {
* connected: Tracks gadget driver bus connection state
*/
struct isp1760_udc {
-#if CONFIG_USB_ISP1761_UDC
+#ifdef CONFIG_USB_ISP1761_UDC
struct isp1760_device *isp;
int irq;
@@ -87,7 +87,7 @@ struct isp1760_udc {
#endif
};
-#if CONFIG_USB_ISP1761_UDC
+#ifdef CONFIG_USB_ISP1761_UDC
int isp1760_udc_register(struct isp1760_device *isp, int irq,
unsigned long irqflags);
void isp1760_udc_unregister(struct isp1760_device *isp);
OpenPOWER on IntegriCloud