commit | 8bada71b0cb504a9554f5456bcc7a1b0ef3e4c65 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Fri Apr 14 14:30:25 2017 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Apr 14 14:30:25 2017 -0700 |
tree | e539f7e591faaa253a6f9ed4f1032740d292f97d | |
parent | af0f79c7d518ac915f78a4e44f5ab2eeaf175af7 [diff] | |
parent | ff7a8ea9340363860a72c51deaeba36ad9daccb9 [diff] |
Merge "mmc: sd: fix crash with sd card" into msm-4.9
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index b7a607a..db5168d 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c
@@ -206,7 +206,9 @@ struct mmc_card *card = mmc_dev_to_card(dev); struct mmc_host *host = card->host; - return host->bus_ops->runtime_idle(host); + if (host->bus_ops->runtime_idle) + return host->bus_ops->runtime_idle(host); + return 0; } #endif /* !CONFIG_PM */