summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap1/include/mach
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2013-04-01 23:03:00 +0300
committerTony Lindgren <tony@atomide.com>2013-04-08 13:59:51 -0700
commit0345a1e33978b60c8ea13235af5af8da3db6af5b (patch)
treecfe293206a48f6a4bb9724cfbd73b4a79b0d4dc6 /arch/arm/mach-omap1/include/mach
parent31880c37c11e28cb81c70757e38392b42e695dc6 (diff)
downloadlwn-0345a1e33978b60c8ea13235af5af8da3db6af5b.tar.gz
lwn-0345a1e33978b60c8ea13235af5af8da3db6af5b.zip
ARM: OMAP1: fix omap_udc registration
omap_udc platform device is not registered properly anymore: CONFIG_USB_GADGET_OMAP was deleted by 193ab2a6 (usb: gadget: allow multiple gadgets to be built) already in v3.1. Fix by using CONFIG_USB_OMAP instead. Tested on Nokia 770 by checking that omap_udc is probed & working properly when built as a module. Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/include/mach')
-rw-r--r--arch/arm/mach-omap1/include/mach/usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/include/mach/usb.h b/arch/arm/mach-omap1/include/mach/usb.h
index 753cd5ce6949..45e5ac707cbb 100644
--- a/arch/arm/mach-omap1/include/mach/usb.h
+++ b/arch/arm/mach-omap1/include/mach/usb.h
@@ -2,7 +2,7 @@
* FIXME correct answer depends on hmc_mode,
* as does (on omap1) any nonzero value for config->otg port number
*/
-#ifdef CONFIG_USB_GADGET_OMAP
+#if IS_ENABLED(CONFIG_USB_OMAP)
#define is_usb0_device(config) 1
#else
#define is_usb0_device(config) 0