Commit 60da6da4 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

ARM: OMAP1: fix USB configuration for device-only setups

[ Upstream commit c7b7b5cb ]

Currently we do USB configuration only if the host mode (CONFIG_USB)
is enabled. But it should be done also in the case of device-only setups,
so change the condition to CONFIG_USB_SUPPORT. This allows to use
omap_udc on Palm Tungsten E.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0086d127
...@@ -25,7 +25,7 @@ obj-y += $(i2c-omap-m) $(i2c-omap-y) ...@@ -25,7 +25,7 @@ obj-y += $(i2c-omap-m) $(i2c-omap-y)
led-y := leds.o led-y := leds.o
usb-fs-$(CONFIG_USB) := usb.o usb-fs-$(CONFIG_USB_SUPPORT) := usb.o
obj-y += $(usb-fs-m) $(usb-fs-y) obj-y += $(usb-fs-m) $(usb-fs-y)
# Specific board support # Specific board support
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <linux/platform_data/usb-omap1.h> #include <linux/platform_data/usb-omap1.h>
#if IS_ENABLED(CONFIG_USB) #if IS_ENABLED(CONFIG_USB_SUPPORT)
void omap1_usb_init(struct omap_usb_config *pdata); void omap1_usb_init(struct omap_usb_config *pdata);
#else #else
static inline void omap1_usb_init(struct omap_usb_config *pdata) static inline void omap1_usb_init(struct omap_usb_config *pdata)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment