ARM: Fix regression caused by ARCH_NR_GPIOS removal
Subsystems (2)
PATCH 1/1 ARM: Fix regression caused by ARCH_NR_GPIOS removal
From: Rafael J. Wysocki <[email protected]>
Commit 3dea19e826da3dd43b3dc308aca299c0b7263c6b (ARM: 7244/1:
mach-shmobile: Use CONFIG_ARCH_NR_GPIO) removed ARCH_NR_GPIOS and introduced ARCH_NR_GPIO instead without changing the users of that symbol. As a result, the kernels including that commit don't boot on my test-bed Mackerel board.
Fix the problem by defining ARCH_NR_GPIOS again.
--- arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/gpio.h +1 -1
@@ -2,7 +2,7 @@#define _ARCH_ARM_GPIO_H#if CONFIG_ARCH_NR_GPIO >0 -#define ARCH_NR_GPIO CONFIG_ARCH_NR_GPIO +#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO#endif /* not all ARM platforms necessarily support this API ... */
Quoted 9 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Commit
3dea19e826da3dd43b3dc308aca299c0b7263c6b(ARM: 7244/1:
mach-shmobile: UseCONFIG_ARCH_NR_GPIO) removedARCH_NR_GPIOSand introducedARCH_NR_GPIOinstead without changing the users of that symbol. As a result, the kernels including that commit don't boot on my test-bed Mackerel board.Fix the problem by defining
ARCH_NR_GPIOSagain.
I'm aware of it, and have:
commit ca95023e7521729d3ace6fb3b9c53281c510a18c
Author: Stephen Warren <[email protected]> Date: Thu Jan 5 21:36:27 2012 +0100
ARM: 7271/1: Fix typo in conversion of ARCH_NR_GPIOS to Kconfig
Commit 44986ab "ARM: 7240/1: Make ARCH_NR_GPIO a Kconfig variable" spelled ARCH_NR_GPIOS as ARCH_NR_GPIO, hence making the change ineffective. This change fixes that.
already queued up.
Quoted 19 lines · Russell King - ARM Linux
Quoted 9 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Commit
3dea19e826da3dd43b3dc308aca299c0b7263c6b(ARM: 7244/1:
mach-shmobile: UseCONFIG_ARCH_NR_GPIO) removedARCH_NR_GPIOSand introducedARCH_NR_GPIOinstead without changing the users of that symbol. As a result, the kernels including that commit don't boot on my test-bed Mackerel board.Fix the problem by defining
ARCH_NR_GPIOSagain.I'm aware of it, and have:
commit
ca95023e7521729d3ace6fb3b9c53281c510a18cAuthor: Stephen Warren <[email protected]> Date: Thu Jan 5 21:36:27 2012 +0100ARM: 7271/1: Fix typo in conversion of
ARCH_NR_GPIOStoKconfig
Quoted 8 lines
Commit 44986ab "ARM: 7240/1: Make
ARCH_NR_GPIOaKconfigvariable" spelledARCH_NR_GPIOSasARCH_NR_GPIO, hence making the change ineffective. This change fixes that.Signed-off-by Stephen Warren <[email protected]>Signed-off-by Russell King <[email protected]>already queued up.
Cool, thanks!
Rafael