aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-davinci/time.c')
-rw-r--r--arch/arm/mach-davinci/time.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-davinci/time.c b/arch/arm/mach-davinci/time.c
index b21f7633d9a8..e5c598a387be 100644
--- a/arch/arm/mach-davinci/time.c
+++ b/arch/arm/mach-davinci/time.c
@@ -399,13 +399,16 @@ struct sys_timer davinci_timer = {
399 399
400 400
401/* reset board using watchdog timer */ 401/* reset board using watchdog timer */
402void davinci_watchdog_reset(void) 402void davinci_watchdog_reset(struct platform_device *pdev)
403{ 403{
404 u32 tgcr, wdtcr; 404 u32 tgcr, wdtcr;
405 struct platform_device *pdev = &davinci_wdt_device; 405 void __iomem *base;
406 void __iomem *base = IO_ADDRESS(pdev->resource[0].start);
407 struct clk *wd_clk; 406 struct clk *wd_clk;
408 407
408 base = ioremap(pdev->resource[0].start, SZ_4K);
409 if (WARN_ON(!base))
410 return;
411
409 wd_clk = clk_get(&pdev->dev, NULL); 412 wd_clk = clk_get(&pdev->dev, NULL);
410 if (WARN_ON(IS_ERR(wd_clk))) 413 if (WARN_ON(IS_ERR(wd_clk)))
411 return; 414 return;