]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mmp: allow platform devices with modular USB
authorArnd Bergmann <arnd@arndb.de>
Wed, 12 Mar 2014 14:29:22 +0000 (15:29 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 18 Mar 2014 15:03:44 +0000 (16:03 +0100)
commitdbab8c10db9f6c611d82448994e0eaded62cf875
treef532fcd500b7d5b347183714b5612128b404009c
parent2c91eaa0e398db9b88a18c9cf3c227312234db12
ARM: mmp: allow platform devices with modular USB

The USB host drivers need platform data to be defined on
pxa168 and pxa910, but the conditionals used in the devices.c
file only work if the drivers are built-in. This patch
fixes the definition by changing the #ifdef to #if IS_ENABLED(),
which works both for built-in and modular Kconfig symbols.

I found one specific problem using 'randconfig' builds, but
for consistency, this patch uses IS_ENABLED() for all Kconfig
symbols in these three files.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-mmp/aspenite.c
arch/arm/mach-mmp/devices.c
arch/arm/mach-mmp/ttc_dkb.c