]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: omap_hsmmc: Fix "Unbalanced pm_runtime_enable!" warning
authorTony Lindgren <tony@atomide.com>
Fri, 9 Mar 2012 04:41:35 +0000 (23:41 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:05 +0000 (12:20 -0400)
Otherwise we can get following warning when re-loading the omap_hsmmc
driver module when gpio_twl4030 module is not loaded:

omap_hsmmc omap_hsmmc.0: Unbalanced pm_runtime_enable!
omap_hsmmc omap_hsmmc.0: Unable to grab MMC CD IRQ
omap_hsmmc: probe of omap_hsmmc.0 failed with error -22

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c

index 98adf0c51e05bebe09056a19779e717f3a154908..94d463859e9bea7160e1807d6d87a503f9aef067 100644 (file)
@@ -1935,6 +1935,7 @@ err_irq_cd_init:
 err_irq:
        pm_runtime_mark_last_busy(host->dev);
        pm_runtime_put_autosuspend(host->dev);
+       pm_runtime_disable(host->dev);
        clk_put(host->fclk);
        if (host->got_dbclk) {
                clk_disable(host->dbclk);