thermal-generic-adc: Silent error message for EPROBE_DEFER
authorHsin-Yi Wang <hsinyi@chromium.org>
Tue, 10 Sep 2019 07:59:07 +0000 (15:59 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Nov 2019 06:00:26 +0000 (07:00 +0100)
commit86bd20a5a518c0690bfca2cc64bc28af0e46863e
tree3aefe46fe67ab7e617618323cb1379e20c719279
parent554cee820e22847ddb0925d5e3b3ea8b2a1f840c
thermal-generic-adc: Silent error message for EPROBE_DEFER

If devm_iio_channel_get() or devm_thermal_zone_of_sensor_register()
fail with EPROBE_DEFER, we shouldn't print an error message, as the
device will be probed again later.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20190910075907.132200-1-hsinyi@chromium.org
drivers/thermal/thermal-generic-adc.c