From: Arnd Bergmann Date: Thu, 13 Mar 2014 15:47:35 +0000 (+0100) Subject: ARM: pxa: select I2C_GPIO only if I2C is on X-Git-Tag: v4.0~2098^2~8^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7dc7d49fa8cddcc1907f94c658989583728099f;p=platform%2Fkernel%2Flinux-amlogic.git ARM: pxa: select I2C_GPIO only if I2C is on The Arcom/Eurotech VIPER SBC enables the I2C_GPIO driver, but that has a dependency on I2C, and causes build failures if I2C is disabled. To keep existing configurations running while fixing the randconfig problems, this changes the logic to only enable I2C_GPIO if I2C is already enabled. Signed-off-by: Arnd Bergmann Acked-by: Haojian Zhuang Cc: Eric Miao Cc: Russell King Cc: Daniel Mack --- diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 2895cd9..6963dee 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -73,8 +73,7 @@ config ARCH_PXA_IDP config ARCH_VIPER bool "Arcom/Eurotech VIPER SBC" select ARCOM_PCMCIA - select HAVE_PWM - select I2C_GPIO + select I2C_GPIO if I2C=y select ISA select PXA25x select PXA_HAVE_ISA_IRQS