summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/mod.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-10-12 21:02:44 -0700
committerFelipe Balbi <balbi@ti.com>2011-10-13 20:41:54 +0300
commit951fe829c73b89a2e4a5b1aaae4c0a43ffa7c68e (patch)
treed0b9a3e2ac53f2773a09e6793014e12038f2fc4a /drivers/usb/renesas_usbhs/mod.h
parent482982062f1bc25ffb5383ab724d73d1a7af07cf (diff)
downloadtalos-op-linux-951fe829c73b89a2e4a5b1aaae4c0a43ffa7c68e.tar.gz
talos-op-linux-951fe829c73b89a2e4a5b1aaae4c0a43ffa7c68e.zip
usb: gadget: renesas_usbhs: fixup driver compile style
In current renesas-usbhs, there was inconsistency about the style of kernel module or built-in. This patch solve it. [ balbi@ti.com : fix compile issue when building modules ] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod.h')
-rw-r--r--drivers/usb/renesas_usbhs/mod.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/mod.h b/drivers/usb/renesas_usbhs/mod.h
index 1f28ed2e9abe..8ae3733031cd 100644
--- a/drivers/usb/renesas_usbhs/mod.h
+++ b/drivers/usb/renesas_usbhs/mod.h
@@ -141,7 +141,8 @@ void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod);
/*
* host / gadget control
*/
-#ifdef CONFIG_USB_RENESAS_USBHS_HCD
+#if defined(CONFIG_USB_RENESAS_USBHS_HCD) || \
+ defined(CONFIG_USB_RENESAS_USBHS_HCD_MODULE)
extern int __devinit usbhs_mod_host_probe(struct usbhs_priv *priv);
extern int __devexit usbhs_mod_host_remove(struct usbhs_priv *priv);
#else
@@ -154,7 +155,8 @@ static inline void usbhs_mod_host_remove(struct usbhs_priv *priv)
}
#endif
-#ifdef CONFIG_USB_RENESAS_USBHS_UDC
+#if defined(CONFIG_USB_RENESAS_USBHS_UDC) || \
+ defined(CONFIG_USB_RENESAS_USBHS_UDC_MODULE)
extern int __devinit usbhs_mod_gadget_probe(struct usbhs_priv *priv);
extern void __devexit usbhs_mod_gadget_remove(struct usbhs_priv *priv);
#else
OpenPOWER on IntegriCloud