summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2015-03-17 02:14:03 +0100
committerTony Lindgren <tony@atomide.com>2015-03-17 18:44:58 +0100
commit51b7e5728ebcded3f2ced9cd3ff71076c91e85de (patch)
tree2e53231c218f17c0d209ac8e75f950ea21cc4789 /arch/arm/plat-omap
parentARM: OMAP: dmtimer: check for pm_runtime_get_sync() failure (diff)
downloadlinux-51b7e5728ebcded3f2ced9cd3ff71076c91e85de.tar.xz
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>
Diffstat (limited to 'arch/arm/plat-omap')
-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;
}