From: Arnd Bergmann Date: Thu, 8 May 2014 14:56:28 +0000 (+0200) Subject: misc: atmel_pwm: only build for supported platforms X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~38^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1690e35f9b95e0efe063d76a7ab485db3e8d3bc5;p=pandora-kernel.git misc: atmel_pwm: only build for supported platforms There is architecture code in mach-at91 that depends on the CONFIG_ATMEL_PWM symbol in order to call the soc-specific at91_add_device_pwm function. While all of this is about code that will be removed in the future, using DT probing and the PWM framework, we currently get a build failure: arch/arm/mach-at91/built-in.o: In function `at91_pwm_leds': arch/arm/mach-at91/leds.c:88: undefined reference to `at91_add_device_pwm' This patch ensures we only try to build this driver on platforms on which it will build and work. Signed-off-by: Arnd Bergmann Acked-by: Nicolas Ferre Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed