diff options
author | Suman Anna <s-anna@ti.com> | 2015-03-16 20:14:03 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-03-17 10:44:58 -0700 |
commit | 51b7e5728ebcded3f2ced9cd3ff71076c91e85de (patch) | |
tree | 2e53231c218f17c0d209ac8e75f950ea21cc4789 /arch/arm/plat-omap | |
parent | a76fc9dda87b51010e4bc60b5e0065a70180b465 (diff) | |
download | linux-51b7e5728ebcded3f2ced9cd3ff71076c91e85de.tar.bz2 |
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.c | 2 |
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; } |