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 */