[PATCH v2] Fix GPIOs banks not being preserved during suspend
Christian Pellegrin
chripell at fsfe.org
Fri Mar 12 02:28:47 EST 2010
This patch corrects the list of registers that must be saved/resumed
during suspend.
Signed-off-by: Christian Pellegrin <chripell at fsfe.org>
---
arch/arm/mach-s3c2410/include/mach/gpio-core.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-core.h b/arch/arm/mach-s3c2410/include/mach/gpio-core.h
index f8b879a..7c33ecf 100644
--- a/arch/arm/mach-s3c2410/include/mach/gpio-core.h
+++ b/arch/arm/mach-s3c2410/include/mach/gpio-core.h
@@ -24,7 +24,7 @@ static inline struct s3c_gpio_chip *s3c_gpiolib_getchip(unsigned int pin)
{
struct s3c_gpio_chip *chip;
- if (pin > S3C2410_GPG(10))
+ if (pin > S3C_GPIO_END)
return NULL;
chip = &s3c24xx_gpios[pin/32];
--
1.5.6.5
More information about the linux-arm-kernel
mailing list