aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91rm9200/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91rm9200/gpio.c')
-rw-r--r--arch/arm/mach-at91rm9200/gpio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-at91rm9200/gpio.c b/arch/arm/mach-at91rm9200/gpio.c
index cec199fd6721..8476cb8856c9 100644
--- a/arch/arm/mach-at91rm9200/gpio.c
+++ b/arch/arm/mach-at91rm9200/gpio.c
@@ -261,10 +261,10 @@ void at91_gpio_suspend(void)
261 at91_sys_write(pio_controller_offset[i] + PIO_IER, wakeups[i]); 261 at91_sys_write(pio_controller_offset[i] + PIO_IER, wakeups[i]);
262 262
263 if (!wakeups[i]) { 263 if (!wakeups[i]) {
264 disable_irq_wake(AT91_ID_PIOA + i); 264 disable_irq_wake(AT91RM9200_ID_PIOA + i);
265 at91_sys_write(AT91_PMC_PCDR, 1 << (AT91_ID_PIOA + i)); 265 at91_sys_write(AT91_PMC_PCDR, 1 << (AT91RM9200_ID_PIOA + i));
266 } else { 266 } else {
267 enable_irq_wake(AT91_ID_PIOA + i); 267 enable_irq_wake(AT91RM9200_ID_PIOA + i);
268#ifdef CONFIG_PM_DEBUG 268#ifdef CONFIG_PM_DEBUG
269 printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", "ABCD"[i], wakeups[i]); 269 printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", "ABCD"[i], wakeups[i]);
270#endif 270#endif
@@ -282,10 +282,10 @@ void at91_gpio_resume(void)
282 } 282 }
283 283
284 at91_sys_write(AT91_PMC_PCER, 284 at91_sys_write(AT91_PMC_PCER,
285 (1 << AT91_ID_PIOA) 285 (1 << AT91RM9200_ID_PIOA)
286 | (1 << AT91_ID_PIOB) 286 | (1 << AT91RM9200_ID_PIOB)
287 | (1 << AT91_ID_PIOC) 287 | (1 << AT91RM9200_ID_PIOC)
288 | (1 << AT91_ID_PIOD)); 288 | (1 << AT91RM9200_ID_PIOD));
289} 289}
290 290
291#else 291#else
@@ -384,7 +384,7 @@ void __init at91_gpio_irq_setup(unsigned banks)
384 384
385 if (banks > 4) 385 if (banks > 4)
386 banks = 4; 386 banks = 4;
387 for (pioc = 0, pin = PIN_BASE, id = AT91_ID_PIOA; 387 for (pioc = 0, pin = PIN_BASE, id = AT91RM9200_ID_PIOA;
388 pioc < banks; 388 pioc < banks;
389 pioc++, id++) { 389 pioc++, id++) {
390 void __iomem *controller; 390 void __iomem *controller;