summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/s3c2410-gpio.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-06-24 21:21:33 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-24 21:21:33 +0100
commit44cc7c9c15124c4506da96304e5f9eb88200fc35 (patch)
tree911dcdfc55ed609a79f7c1c23c918e709b6e3cdf /arch/arm/mach-s3c2410/s3c2410-gpio.c
parent46491c94d39a519178ba8c6b5b5d6a839210124d (diff)
downloadtalos-op-linux-44cc7c9c15124c4506da96304e5f9eb88200fc35.tar.gz
talos-op-linux-44cc7c9c15124c4506da96304e5f9eb88200fc35.zip
[ARM] 3641/1: S3C2412: Fixup gpio register naming
Patch from Ben Dooks The current S3C2412 has used to moving S3C24XX_ for the generic form of an register has been moved from the S3C2410. Fixup S3C2410_EXTINTx and S3C2410_EINFLTx to S3C24XX_EXTINTx and S3C24XX_EXTINTx Depends on Patch #3635/1, Patch #3640/1 Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/s3c2410-gpio.c')
-rw-r--r--arch/arm/mach-s3c2410/s3c2410-gpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2410-gpio.c b/arch/arm/mach-s3c2410/s3c2410-gpio.c
index 17519b3281b2..471a71490010 100644
--- a/arch/arm/mach-s3c2410/s3c2410-gpio.c
+++ b/arch/arm/mach-s3c2410/s3c2410-gpio.c
@@ -35,7 +35,7 @@
int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on,
unsigned int config)
{
- void __iomem *reg = S3C2410_EINFLT0;
+ void __iomem *reg = S3C24XX_EINFLT0;
unsigned long flags;
unsigned long val;
@@ -58,10 +58,10 @@ int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on,
/* update filter enable */
- val = __raw_readl(S3C2410_EXTINT2);
+ val = __raw_readl(S3C24XX_EXTINT2);
val &= ~(1 << ((pin * 4) + 3));
val |= on << ((pin * 4) + 3);
- __raw_writel(val, S3C2410_EXTINT2);
+ __raw_writel(val, S3C24XX_EXTINT2);
local_irq_restore(flags);
OpenPOWER on IntegriCloud