From: Suman Anna Date: Tue, 17 Mar 2015 01:14:03 +0000 (-0500) Subject: ARM: OMAP: dmtimer: disable pm runtime on remove X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=51b7e5728ebcded3f2ced9cd3ff71076c91e85de;p=linux-beck.git 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 Signed-off-by: Tony Lindgren --- 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; }