Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: kill CONFIG_NEED_MACH_GPIO_H

The long pain of maintaining the legacy <mach/gpio.h> include
ladder is now gone with S5P as the last user being deleted. Cut
this Kconfig option and remove the inclusion directive in
<asm/gpio.h> for good.

Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

-12
-7
arch/arm/Kconfig
··· 239 239 this feature (eg, building a kernel for a single machine) and 240 240 you need to shrink the kernel to the minimal size. 241 241 242 - config NEED_MACH_GPIO_H 243 - bool 244 - help 245 - Select this when mach/gpio.h is required to provide special 246 - definitions for this platform. The need for mach/gpio.h should 247 - be avoided when possible. 248 - 249 242 config NEED_MACH_IO_H 250 243 bool 251 244 help
-5
arch/arm/include/asm/gpio.h
··· 5 5 #define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO 6 6 #endif 7 7 8 - /* not all ARM platforms necessarily support this API ... */ 9 - #ifdef CONFIG_NEED_MACH_GPIO_H 10 - #include <mach/gpio.h> 11 - #endif 12 - 13 8 #ifndef __ARM_GPIOLIB_COMPLEX 14 9 /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ 15 10 #include <asm-generic/gpio.h>