Browse Source

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>
Suman Anna 10 years ago
parent
commit
51b7e5728e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/arm/plat-omap/dmtimer.c

+ 2 - 0
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;
 }