ARM: OMAP: dmtimer: disable pm runtime on remove
authorSuman Anna <s-anna@ti.com>
Tue, 17 Mar 2015 01:14:03 +0000 (20:14 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 17 Mar 2015 17:44:58 +0000 (10:44 -0700)
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>
arch/arm/plat-omap/dmtimer.c

index f32c74c..8ca94d3 100644 (file)
@@ -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;
 }