summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2015-03-16 20:14:03 -0500
committerTony Lindgren <tony@atomide.com>2015-03-17 10:44:58 -0700
commit51b7e5728ebcded3f2ced9cd3ff71076c91e85de (patch)
tree2e53231c218f17c0d209ac8e75f950ea21cc4789
parenta76fc9dda87b51010e4bc60b5e0065a70180b465 (diff)
downloadblackbird-obmc-linux-51b7e5728ebcded3f2ced9cd3ff71076c91e85de.tar.gz
blackbird-obmc-linux-51b7e5728ebcded3f2ced9cd3ff71076c91e85de.zip
ARM: OMAP: dmtimer: disable pm runtime on remove
Disable the pm_runtime of the device upon remove. This is added to balance the pm_runtime_enable() invoked in the probe. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/plat-omap/dmtimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index f32c74c0e1de..8ca94d379bc3 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -910,6 +910,8 @@ static int omap_dm_timer_remove(struct platform_device *pdev)
}
spin_unlock_irqrestore(&dm_timer_lock, flags);
+ pm_runtime_disable(&pdev->dev);
+
return ret;
}
OpenPOWER on IntegriCloud