From 435b5d8927c0299fac1ffda02f5cb385d9b7817e Mon Sep 17 00:00:00 2001 From: xbw Date: Fri, 28 Sep 2012 17:23:23 +0800 Subject: [PATCH] SDMMC: fix the crash bug when error occur during suspend --- drivers/mmc/core/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 3f3615c0af90..cc973ce3d993 100755 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2013,7 +2013,7 @@ int mmc_suspend_host(struct mmc_host *host) if (host->bus_ops->suspend) err = host->bus_ops->suspend(host); -#if defined(CONFIG_SDMMC_RK29) && defined(CONFIG_SDMMC_RK29_OLD) +#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) //deleted all detail code. //fix the crash bug when error occur during suspend. Modiefyed by xbw at 2012-08-09 #else if (err == -ENOSYS || !host->bus_ops->resume) { -- 2.34.1