summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2022-11-29 00:16:54 +0000
committerMark Brown <broonie@kernel.org>2022-11-29 11:32:07 +0000
commit863b9179cee4570e5da4206dcf8dbcdcc37c8348 (patch)
tree8c311e7ed45485430e8859ba7672d0c8658d633c /sound
parenta3a96e93cc888c652e47e4d7346abe99b1b44c53 (diff)
ASoC: qcom: lpass-sc7180: Delete redundant error log from _resume()
sc7180_lpass_dev_resume() logs an error if clk_bulk_prepare_enable() fails. The clock framework already generates error logs if anything goes wrong, so the logging in _resume() is redundant, drop it. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20221129001633.v2.1.I8d1993f41f0da1eac0ecba321678ac489f9c0b9b@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/qcom/lpass-sc7180.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/qcom/lpass-sc7180.c b/sound/soc/qcom/lpass-sc7180.c
index 9c3365ddc274..b96b85ad9ff4 100644
--- a/sound/soc/qcom/lpass-sc7180.c
+++ b/sound/soc/qcom/lpass-sc7180.c
@@ -165,15 +165,9 @@ static int sc7180_lpass_exit(struct platform_device *pdev)
static int sc7180_lpass_dev_resume(struct device *dev)
{
- int ret = 0;
struct lpass_data *drvdata = dev_get_drvdata(dev);
- ret = clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks);
- if (ret) {
- dev_err(dev, "sc7180 clk prepare and enable failed\n");
- return ret;
- }
- return ret;
+ return clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks);
}
static int sc7180_lpass_dev_suspend(struct device *dev)