diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2013-06-17 10:45:37 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-06-18 14:13:16 -0400 |
commit | 88f597383824c7a67b3120a3584afca85b91e7bb (patch) | |
tree | 2e316832220bab2fff3ce1942c9de8cbf216f571 /arch/arm/mach-s3c64xx | |
parent | a4658e57a7a1bc8d6b54c29c051426ea838fd6d7 (diff) |
ARM: SAMSUNG: Let platforms use the new watchdog reset driver
This patch moves all platforms using the legacy watchdog reset helper
function to the new watchdog reset driver.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r-- | arch/arm/mach-s3c64xx/common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c64xx/common.c b/arch/arm/mach-s3c64xx/common.c index 0b9c0ba44834..1aed6f4be1ce 100644 --- a/arch/arm/mach-s3c64xx/common.c +++ b/arch/arm/mach-s3c64xx/common.c | |||
@@ -183,6 +183,12 @@ core_initcall(s3c64xx_dev_init); | |||
183 | 183 | ||
184 | void __init s3c64xx_init_irq(u32 vic0_valid, u32 vic1_valid) | 184 | void __init s3c64xx_init_irq(u32 vic0_valid, u32 vic1_valid) |
185 | { | 185 | { |
186 | /* | ||
187 | * FIXME: there is no better place to put this at the moment | ||
188 | * (samsung_wdt_reset_init needs clocks) | ||
189 | */ | ||
190 | samsung_wdt_reset_init(S3C_VA_WATCHDOG); | ||
191 | |||
186 | printk(KERN_DEBUG "%s: initialising interrupts\n", __func__); | 192 | printk(KERN_DEBUG "%s: initialising interrupts\n", __func__); |
187 | 193 | ||
188 | /* initialise the pair of VICs */ | 194 | /* initialise the pair of VICs */ |
@@ -378,7 +384,7 @@ arch_initcall(s3c64xx_init_irq_eint); | |||
378 | void s3c64xx_restart(char mode, const char *cmd) | 384 | void s3c64xx_restart(char mode, const char *cmd) |
379 | { | 385 | { |
380 | if (mode != 's') | 386 | if (mode != 's') |
381 | arch_wdt_reset(); | 387 | samsung_wdt_reset(); |
382 | 388 | ||
383 | /* if all else fails, or mode was for soft, jump to 0 */ | 389 | /* if all else fails, or mode was for soft, jump to 0 */ |
384 | soft_restart(0); | 390 | soft_restart(0); |