Skip to content

Commit

Permalink
ARM: OMAP: dmtimer: disable pm runtime on remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Suman Anna authored and Tony Lindgren committed Mar 17, 2015
1 parent a76fc9d commit 51b7e57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/plat-omap/dmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 51b7e57

Please sign in to comment.