aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/wd_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/wd_timer.c')
-rw-r--r--arch/arm/mach-omap2/wd_timer.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/wd_timer.c b/arch/arm/mach-omap2/wd_timer.c
index 06c256d38988..b0c4907ab3ca 100644
--- a/arch/arm/mach-omap2/wd_timer.c
+++ b/arch/arm/mach-omap2/wd_timer.c
@@ -27,7 +27,6 @@
27int omap2_wd_timer_disable(struct omap_hwmod *oh) 27int omap2_wd_timer_disable(struct omap_hwmod *oh)
28{ 28{
29 void __iomem *base; 29 void __iomem *base;
30 int ret;
31 30
32 if (!oh) { 31 if (!oh) {
33 pr_err("%s: Could not look up wdtimer_hwmod\n", __func__); 32 pr_err("%s: Could not look up wdtimer_hwmod\n", __func__);
@@ -41,14 +40,6 @@ int omap2_wd_timer_disable(struct omap_hwmod *oh)
41 return -EINVAL; 40 return -EINVAL;
42 } 41 }
43 42
44 /* Enable the clocks before accessing the WDT registers */
45 ret = omap_hwmod_enable(oh);
46 if (ret) {
47 pr_err("%s: Could not enable clocks for %s\n",
48 oh->name, __func__);
49 return ret;
50 }
51
52 /* sequence required to disable watchdog */ 43 /* sequence required to disable watchdog */
53 __raw_writel(0xAAAA, base + OMAP_WDT_SPR); 44 __raw_writel(0xAAAA, base + OMAP_WDT_SPR);
54 while (__raw_readl(base + OMAP_WDT_WPS) & 0x10) 45 while (__raw_readl(base + OMAP_WDT_WPS) & 0x10)
@@ -58,11 +49,6 @@ int omap2_wd_timer_disable(struct omap_hwmod *oh)
58 while (__raw_readl(base + OMAP_WDT_WPS) & 0x10) 49 while (__raw_readl(base + OMAP_WDT_WPS) & 0x10)
59 cpu_relax(); 50 cpu_relax();
60 51
61 ret = omap_hwmod_idle(oh); 52 return 0;
62 if (ret)
63 pr_err("%s: Could not disable clocks for %s\n",
64 oh->name, __func__);
65
66 return ret;
67} 53}
68 54