iio: adc: Remove redundant dev_err_probe()
authorRuan Jinjie <ruanjinjie@huawei.com>
Thu, 27 Jul 2023 07:39:12 +0000 (15:39 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Jul 2023 11:13:17 +0000 (12:13 +0100)
commit089c1e1132c86c668a19e8cbfab0faffe0220643
treeb8790903a40a60e152206908b3562668080a6c55
parent1240c94ce81958f1e2962f6140081b082d013ba9
iio: adc: Remove redundant dev_err_probe()

There is no need to call the dev_err() function directly to print a custom
message when handling an error from either the platform_get_irq() or
platform_get_irq_byname() functions as both are going to display an
appropriate error message in case of a failure.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20230727073912.4178659-1-ruanjinjie@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ab8500-gpadc.c
drivers/iio/adc/imx7d_adc.c
drivers/iio/adc/palmas_gpadc.c
drivers/iio/adc/rockchip_saradc.c
drivers/iio/light/cm3605.c