iio: adc: fix the return value handle for platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Thu, 27 Jul 2023 13:16:07 +0000 (21:16 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Jul 2023 15:23:45 +0000 (16:23 +0100)
commitc09ddcdd4dd32ee9768dc233ead4b3d726f26d38
tree8206bd2bdd3358111eea275c1788e15583fc2908
parent49d736313d0975ddeb156f4f59801da833f78b30
iio: adc: fix the return value handle for platform_get_irq()

There is no possible for platform_get_irq() to return 0
and the return value of platform_get_irq() is more sensible
to show the error reason.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230727131607.2897937-1-ruanjinjie@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/bcm_iproc_adc.c
drivers/iio/adc/lpc32xx_adc.c
drivers/iio/adc/npcm_adc.c
drivers/iio/adc/spear_adc.c