Commit bc55630c authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Daniel Lezcano
Browse files

thermal/drivers/qcom-tsens: Simplify with dev_err_probe()

parent ecfee917
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1336,11 +1336,9 @@ static int tsens_probe(struct platform_device *pdev)

	if (priv->ops->calibrate) {
		ret = priv->ops->calibrate(priv);
		if (ret < 0) {
			if (ret != -EPROBE_DEFER)
				dev_err(dev, "%s: calibration failed\n", __func__);
			return ret;
		}
		if (ret < 0)
			return dev_err_probe(dev, ret, "%s: calibration failed\n",
					     __func__);
	}

	ret = tsens_register(priv);