mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
SDMMC: fix the crash bug when error occur during suspend
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user