power: supply: 88pm860x_battery: fix the return value handle for platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Mon, 31 Jul 2023 11:39:59 +0000 (19:39 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 12 Sep 2023 18:44:52 +0000 (20:44 +0200)
commit6eca10a1c2e5c5edaf92d5a9d1bcf415456369b7
treea8a461a06be49cb42c35869932ffb619d9d613c4
parent5b69b5f209b7a6d21329b14b533b390fff6895d5
power: supply: 88pm860x_battery: 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/20230731113959.1957820-1-ruanjinjie@huawei.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/88pm860x_battery.c