ARM: OMAP1: fix USB configuration for device-only setups
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 4 Dec 2018 17:57:42 +0000 (19:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:13 +0000 (15:37 +0100)
commite4bf1456a9fcc5614ba8292c35cc72a4b3aa4d7c
tree50cea98dd6fb169e23ef653bc68d7028aac109d7
parent7324581318f696cbb615d796657b11eae041c353
ARM: OMAP1: fix USB configuration for device-only setups

[ Upstream commit c7b7b5cbd0c859b1546a5a3455d457708bdadf4c ]

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: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-omap1/Makefile
arch/arm/mach-omap1/include/mach/usb.h