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.
Unified · Split
| @@ -165,15 +165,9 @@ static int sc7180_lpass_exit(struct platform_device *pdev) · 164 unmodified lines | ||
| 165 | 165 | |
| 166 | 166 | static int sc7180_lpass_dev_resume(struct device *dev) |
| 167 | 167 | { |
| 168 | − int ret = 0; | |
| 169 | 168 | struct lpass_data *drvdata = dev_get_drvdata(dev); |
| 170 | 169 | |
| 171 | − ret = clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); | |
| 172 | − if (ret) { | |
| 173 | − dev_err(dev, "sc7180 clk prepare and enable failed\n"); | |
| 174 | − return ret; | |
| 175 | − } | |
| 176 | − return ret; | |
| 170 | + return clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); | |
| 177 | 171 | } |
| 178 | 172 | |
| 179 | 173 | static int sc7180_lpass_dev_suspend(struct device *dev) |