mmc: core: Fix typo at mmc_card_sleep
authorKyungmin Park <kyungmin.park@samsung.com>
Thu, 17 Nov 2011 04:34:33 +0000 (13:34 +0900)
committerChris Ball <cjb@laptop.org>
Sat, 10 Dec 2011 21:18:37 +0000 (16:18 -0500)
Fix wrong bus_ops->sleep check.  (This isn't expected to have real-world
consequences, because the mmc core always defines both 'awake' and
'sleep' ops.)

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c

index 7ee2e07f36f450d5db85dfc39f766a3f7a0d039e..271efeac860b6047ed4d3c25375642b52f9fb858 100644 (file)
@@ -2218,7 +2218,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);