public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ARM: Fix regression caused by ARCH_NR_GPIOS removal
@ 2012-01-14 23:33 Rafael J. Wysocki
  2012-01-14 23:36 ` Russell King - ARM Linux
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2012-01-14 23:33 UTC (permalink / raw)
  To: linux-arm-kernel

From: Rafael J. Wysocki <rjw@sisk.pl>

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.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 arch/arm/include/asm/gpio.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/arch/arm/include/asm/gpio.h
===================================================================
--- linux.orig/arch/arm/include/asm/gpio.h
+++ linux/arch/arm/include/asm/gpio.h
@@ -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 ... */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: Fix regression caused by ARCH_NR_GPIOS removal
  2012-01-14 23:33 [PATCH] ARM: Fix regression caused by ARCH_NR_GPIOS removal Rafael J. Wysocki
@ 2012-01-14 23:36 ` Russell King - ARM Linux
  2012-01-15 12:07   ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2012-01-14 23:36 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Jan 15, 2012 at 12:33:25AM +0100, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
> 
> 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.

I'm aware of it, and have:

commit ca95023e7521729d3ace6fb3b9c53281c510a18c
Author: Stephen Warren <swarren@nvidia.com>
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.
    
    Signed-off-by: Stephen Warren <swarren@nvidia.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

already queued up.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: Fix regression caused by ARCH_NR_GPIOS removal
  2012-01-14 23:36 ` Russell King - ARM Linux
@ 2012-01-15 12:07   ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2012-01-15 12:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Sunday, January 15, 2012, Russell King - ARM Linux wrote:
> On Sun, Jan 15, 2012 at 12:33:25AM +0100, Rafael J. Wysocki wrote:
> > From: Rafael J. Wysocki <rjw@sisk.pl>
> > 
> > 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.
> 
> I'm aware of it, and have:
> 
> commit ca95023e7521729d3ace6fb3b9c53281c510a18c
> Author: Stephen Warren <swarren@nvidia.com>
> 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.
>     
>     Signed-off-by: Stephen Warren <swarren@nvidia.com>
>     Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
> 
> already queued up.

Cool, thanks!

Rafael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-15 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-14 23:33 [PATCH] ARM: Fix regression caused by ARCH_NR_GPIOS removal Rafael J. Wysocki
2012-01-14 23:36 ` Russell King - ARM Linux
2012-01-15 12:07   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox