aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2015-03-16 21:14:03 -0400
committerTony Lindgren <tony@atomide.com>2015-03-17 13:44:58 -0400
commit51b7e5728ebcded3f2ced9cd3ff71076c91e85de (patch)
tree2e53231c218f17c0d209ac8e75f950ea21cc4789 /arch
parenta76fc9dda87b51010e4bc60b5e0065a70180b465 (diff)
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')
-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)
910 } 910 }
911 spin_unlock_irqrestore(&dm_timer_lock, flags); 911 spin_unlock_irqrestore(&dm_timer_lock, flags);
912 912
913 pm_runtime_disable(&pdev->dev);
914
913 return ret; 915 return ret;
914} 916}
915 917