diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-07-27 21:16:07 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-07-29 16:23:45 +0100 |
commit | c09ddcdd4dd32ee9768dc233ead4b3d726f26d38 (patch) | |
tree | 8206bd2bdd3358111eea275c1788e15583fc2908 /drivers/iio/inkern.c | |
parent | 49d736313d0975ddeb156f4f59801da833f78b30 (diff) | |
download | linux-stable-c09ddcdd4dd32ee9768dc233ead4b3d726f26d38.tar.gz linux-stable-c09ddcdd4dd32ee9768dc233ead4b3d726f26d38.tar.bz2 linux-stable-c09ddcdd4dd32ee9768dc233ead4b3d726f26d38.zip |
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>
Diffstat (limited to 'drivers/iio/inkern.c')
0 files changed, 0 insertions, 0 deletions