thermal: exynos: Silence warning during deferred probe
Don't confuse user with meaningless warning about the failure of registering sensors in case of deferred probe. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200228092331.21548-1-m.szyprowski@samsung.com
This commit is contained in:
parent
e20db70dba
commit
82bdde8ecd
|
@ -1094,7 +1094,9 @@ static int exynos_tmu_probe(struct platform_device *pdev)
|
||||||
&exynos_sensor_ops);
|
&exynos_sensor_ops);
|
||||||
if (IS_ERR(data->tzd)) {
|
if (IS_ERR(data->tzd)) {
|
||||||
ret = PTR_ERR(data->tzd);
|
ret = PTR_ERR(data->tzd);
|
||||||
dev_err(&pdev->dev, "Failed to register sensor: %d\n", ret);
|
if (ret != -EPROBE_DEFER)
|
||||||
|
dev_err(&pdev->dev, "Failed to register sensor: %d\n",
|
||||||
|
ret);
|
||||||
goto err_sclk;
|
goto err_sclk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue