mmc: Make sure host is disabled on suspend
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 16 Aug 2012 17:34:01 +0000 (10:34 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Thu, 16 Aug 2012 18:27:59 +0000 (11:27 -0700)
Change-Id: Ie0bf2004e173cef8dad66722a152658d7727ab65
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/mmc/core/core.c

index 85360955816d89be32e8d002795a4c201f2c58db..460863422892daedb831d14a1ac2bd0a902c1ab3 100644 (file)
@@ -1851,6 +1851,7 @@ int mmc_suspend_host(struct mmc_host *host)
                        host->pm_flags = 0;
                        err = 0;
                }
+               flush_delayed_work(&host->disable);
        }
        mmc_bus_put(host);