Message ID | 1283858949-11073-7-git-send-email-ohad@wizery.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index c118cc2..a5a76a8 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -10,6 +10,7 @@ */ #include <linux/err.h> +#include <linux/pm_runtime.h> #include <linux/mmc/host.h> #include <linux/mmc/card.h> @@ -709,6 +710,15 @@ int mmc_attach_sdio(struct mmc_host *host, u32 ocr) card = host->card; /* + * Enable Runtime PM for this card + */ + err = pm_runtime_set_active(&card->dev); + if (err) + goto remove; + + pm_runtime_enable(&card->dev); + + /* * The number of functions on the card is encoded inside * the ocr. */