mmc: core: use asynchronous runtime suspend pm core api

This change is needed bacause mmc_rpm_release() api is used in softirq
context, when usage counter goes to zero, it will trigger pm core runtime
suspend callback.

Change-Id: I18b1d193952a83336d6539c495509091c24e7d41
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
This commit is contained in:
Konstantin Dorfman 2015-05-27 10:36:23 +03:00
parent 1d318be403
commit 76de21c838

View file

@ -4325,7 +4325,7 @@ void mmc_rpm_release(struct mmc_host *host, struct device *dev)
if (!mmc_use_core_runtime_pm(host))
return;
ret = pm_runtime_put_sync(dev);
ret = pm_runtime_put(dev);
if ((ret < 0) &&
(dev->power.runtime_error || (dev->power.disable_depth > 0))) {
pr_err("%s: %s: %s: pm_runtime_put_sync: err: %d\n",