From 7e3974b2f3e393abcf7934f020e26d3d22efa940 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 5 Nov 2011 15:51:25 +0000 Subject: ARM: restart: u300: use new restart hook Hook these platforms restart code into the new restart hook rather than using arch_reset(). Acked-by: Linus Walleij Signed-off-by: Russell King --- arch/arm/mach-u300/include/mach/platform.h | 1 + arch/arm/mach-u300/include/mach/system.h | 24 +----------------------- 2 files changed, 2 insertions(+), 23 deletions(-) (limited to 'arch/arm/mach-u300/include/mach') diff --git a/arch/arm/mach-u300/include/mach/platform.h b/arch/arm/mach-u300/include/mach/platform.h index 77d9210a82e2..096333f32fc3 100644 --- a/arch/arm/mach-u300/include/mach/platform.h +++ b/arch/arm/mach-u300/include/mach/platform.h @@ -14,6 +14,7 @@ void u300_map_io(void); void u300_init_irq(void); void u300_init_devices(void); +void u300_restart(char, const char *); extern struct sys_timer u300_timer; #endif diff --git a/arch/arm/mach-u300/include/mach/system.h b/arch/arm/mach-u300/include/mach/system.h index 6b6fef7a438c..0ddf3cd367c3 100644 --- a/arch/arm/mach-u300/include/mach/system.h +++ b/arch/arm/mach-u300/include/mach/system.h @@ -8,33 +8,11 @@ * System shutdown and reset functions. * Author: Linus Walleij */ -#include -#include -#include -#include - -/* Forward declare this function from the watchdog */ -void coh901327_watchdog_reset(void); - static inline void arch_idle(void) { cpu_do_idle(); } -static void arch_reset(char mode, const char *cmd) +static inline void arch_reset(char mode, const char *cmd) { - switch (mode) { - case 's': - case 'h': - printk(KERN_CRIT "RESET: shutting down/rebooting system\n"); -#ifdef CONFIG_COH901327_WATCHDOG - coh901327_watchdog_reset(); -#endif - break; - default: - /* Do nothing */ - break; - } - /* Wait for system do die/reset. */ - while (1); } -- cgit v1.2.1