mirror of https://gitee.com/openkylin/linux.git
mmc: sdhci_am654: Use pm_runtime_resume_and_get() to replace open coding
use pm_runtime_resume_and_get() to replace pm_runtime_get_sync and pm_runtime_put_noidle. this change is just to simplify the code, no actual functional changes. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Link: https://lore.kernel.org/r/1621558775-31185-1-git-send-email-tiantao6@hisilicon.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
05335af1e8
commit
07e70346e2
|
@ -809,11 +809,9 @@ static int sdhci_am654_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
/* Clocks are enabled using pm_runtime */
|
/* Clocks are enabled using pm_runtime */
|
||||||
pm_runtime_enable(dev);
|
pm_runtime_enable(dev);
|
||||||
ret = pm_runtime_get_sync(dev);
|
ret = pm_runtime_resume_and_get(dev);
|
||||||
if (ret < 0) {
|
if (ret)
|
||||||
pm_runtime_put_noidle(dev);
|
|
||||||
goto pm_runtime_disable;
|
goto pm_runtime_disable;
|
||||||
}
|
|
||||||
|
|
||||||
base = devm_platform_ioremap_resource(pdev, 1);
|
base = devm_platform_ioremap_resource(pdev, 1);
|
||||||
if (IS_ERR(base)) {
|
if (IS_ERR(base)) {
|
||||||
|
|
Loading…
Reference in New Issue