From: Kyungmin Park <kyungmin.p...@samsung.com>

Fix wrong bus_ops->sleep check.

Signed-off-by: Kyungmin Park <kyungmin.p...@samsung.com>
---
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 5278ffb..193e449 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2196,7 +2196,7 @@ int mmc_card_sleep(struct mmc_host *host)
 
        mmc_bus_get(host);
 
-       if (host->bus_ops && !host->bus_dead && host->bus_ops->awake)
+       if (host->bus_ops && !host->bus_dead && host->bus_ops->sleep)
                err = host->bus_ops->sleep(host);
 
        mmc_bus_put(host);
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to