diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-03 05:53:29 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 07:57:08 -0500 |
commit | 1b2073e7789429e6554e69b307d857d8f46a2e22 (patch) | |
tree | e23f81117bd5ec98b705c9fdd15fce1801a72c88 /arch/arm/mach-at91/at91rm9200.c | |
parent | 8390918874324360335370fbcc2c3c9884476884 (diff) |
ARM: restart: at91: use new restart hook
Rather than using a private function pointer, use the existing
arm_pm_restart function pointer instead. We no longer need to enable
the I-cache in at91sam9_alt_reset() as the caches will now be on when
this function is called.
Update the function names to use the 'restart' terminology rather than
the 'reboot' terminology.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/at91rm9200.c')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 713d3bdbd28..430a9fdc3db 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -288,7 +288,7 @@ static struct at91_gpio_bank at91rm9200_gpio[] = { | |||
288 | } | 288 | } |
289 | }; | 289 | }; |
290 | 290 | ||
291 | static void at91rm9200_reset(void) | 291 | static void at91rm9200_restart(char mode, const char *cmd) |
292 | { | 292 | { |
293 | /* | 293 | /* |
294 | * Perform a hardware reset with the use of the Watchdog timer. | 294 | * Perform a hardware reset with the use of the Watchdog timer. |
@@ -309,7 +309,7 @@ static void __init at91rm9200_map_io(void) | |||
309 | 309 | ||
310 | static void __init at91rm9200_initialize(void) | 310 | static void __init at91rm9200_initialize(void) |
311 | { | 311 | { |
312 | at91_arch_reset = at91rm9200_reset; | 312 | arm_pm_restart = at91rm9200_restart; |
313 | at91_extern_irq = (1 << AT91RM9200_ID_IRQ0) | (1 << AT91RM9200_ID_IRQ1) | 313 | at91_extern_irq = (1 << AT91RM9200_ID_IRQ0) | (1 << AT91RM9200_ID_IRQ1) |
314 | | (1 << AT91RM9200_ID_IRQ2) | (1 << AT91RM9200_ID_IRQ3) | 314 | | (1 << AT91RM9200_ID_IRQ2) | (1 << AT91RM9200_ID_IRQ3) |
315 | | (1 << AT91RM9200_ID_IRQ4) | (1 << AT91RM9200_ID_IRQ5) | 315 | | (1 << AT91RM9200_ID_IRQ4) | (1 << AT91RM9200_ID_IRQ5) |