Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: qcom-spmi-adc5: Suppress probe-deferral error message

Much like 807efb7102e8 ("thermal: qcom-spmi-adc-tm5: suppress
probe-deferral error message") the ADC5 driver also spams a similar
probe-deferral error on startup when a channel is not yet available:

[ 0.343136] qcom-spmi-adc-tm5 1c40000.spmi:pmic@0:adc-tm@3500: get dt data failed: -517

Suppress it by using dev_err_probe instead, which also takes care of
storing the message as reason for deferring.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Martin Botka <martin.botka@somainline.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20221216190945.902754-1-marijn.suijten@somainline.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Marijn Suijten and committed by
Jonathan Cameron
04104842 5d1c74b1

+2 -4
+2 -4
drivers/iio/adc/qcom-spmi-adc5.c
··· 894 894 mutex_init(&adc->lock); 895 895 896 896 ret = adc5_get_fw_data(adc); 897 - if (ret) { 898 - dev_err(dev, "adc get dt data failed\n"); 899 - return ret; 900 - } 897 + if (ret) 898 + return dev_err_probe(dev, ret, "adc get dt data failed\n"); 901 899 902 900 irq_eoc = platform_get_irq(pdev, 0); 903 901 if (irq_eoc < 0) {