Explorar el Código

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 hace 10 años
padre
commit
51b7e5728e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;
 }