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>
This commit is contained in:
@@ -287,7 +287,7 @@ static void __init at91sam9261_map_io(void)
|
||||
|
||||
static void __init at91sam9261_initialize(void)
|
||||
{
|
||||
at91_arch_reset = at91sam9_alt_reset;
|
||||
arm_pm_restart = at91sam9_alt_restart;
|
||||
pm_power_off = at91sam9261_poweroff;
|
||||
at91_extern_irq = (1 << AT91SAM9261_ID_IRQ0) | (1 << AT91SAM9261_ID_IRQ1)
|
||||
| (1 << AT91SAM9261_ID_IRQ2);
|
||||
|
Reference in New Issue
Block a user