Commit 517f6e26 authored by Minghao Chi's avatar Minghao Chi Committed by Greg Kroah-Hartman

nvmem: qfprom: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220429162701.2222-10-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b6b7ef93
...@@ -217,9 +217,8 @@ static int qfprom_enable_fuse_blowing(const struct qfprom_priv *priv, ...@@ -217,9 +217,8 @@ static int qfprom_enable_fuse_blowing(const struct qfprom_priv *priv,
goto err_clk_rate_set; goto err_clk_rate_set;
} }
ret = pm_runtime_get_sync(priv->dev); ret = pm_runtime_resume_and_get(priv->dev);
if (ret < 0) { if (ret < 0) {
pm_runtime_put_noidle(priv->dev);
dev_err(priv->dev, "Failed to enable power-domain\n"); dev_err(priv->dev, "Failed to enable power-domain\n");
goto err_reg_enable; goto err_reg_enable;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment