linux/drivers/power/reset
Miaoqian Lin ba18dad0fb power: reset: gemini-poweroff: Fix IRQ check in gemini_poweroff_probe
platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:

    int irq = platform_get_irq(pdev, 0);
    if (irq < 0)
        return irq;

Fix the check of return value to catch errors correctly.

Fixes: f7a388d6cd ("power: reset: Add a driver for the Gemini poweroff")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2022-02-01 11:07:59 +01:00
..
arm-versatile-reboot.c
as3722-poweroff.c
at91-poweroff.c
at91-reset.c power: reset: at91-reset: check properly the return value of devm_of_iomap 2021-10-02 17:40:34 +02:00
at91-sama5d2_shdwc.c power: reset: at91-sama5d2_shdwc: Remove redundant error printing in at91_shdwc_probe() 2021-06-04 13:04:01 +02:00
atc260x-poweroff.c power: reset: Add poweroff driver for ATC260x PMICs 2021-01-13 22:17:23 +01:00
axxia-reset.c
brcm-kona-reset.c
brcmstb-reboot.c
gemini-poweroff.c power: reset: gemini-poweroff: Fix IRQ check in gemini_poweroff_probe 2022-02-01 11:07:59 +01:00
gpio-poweroff.c power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE 2021-06-04 12:58:30 +02:00
gpio-restart.c
hisi-reboot.c power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE 2021-04-09 13:50:01 +02:00
Kconfig power: reset: Add TPS65086 restart driver 2021-08-16 14:48:51 +02:00
keystone-reset.c drivers: power: add missing MODULE_DEVICE_TABLE in keystone-reset.c 2021-06-30 00:06:37 +02:00
linkstation-poweroff.c power: reset: linkstation-poweroff: add new device 2021-08-13 19:16:41 +02:00
ltc2952-poweroff.c power: reset: ltc2952: Fix use of floating point literals 2021-11-16 15:22:39 +01:00
Makefile power: reset: Add TPS65086 restart driver 2021-08-16 14:48:51 +02:00
msm-poweroff.c
mt6323-poweroff.c power: reset: mt6397: Check for null res pointer 2022-01-03 18:30:21 +01:00
nvmem-reboot-mode.c
ocelot-reset.c power: reset: ocelot: Add support 2 other MIPS based SoCs 2020-11-29 22:34:07 +01:00
oxnas-restart.c
piix4-poweroff.c
qcom-pon.c
qnap-poweroff.c power: reset: Use printk format symbol resolver 2020-11-30 02:10:18 +01:00
reboot-mode.c
regulator-poweroff.c power: reset: regulator-poweroff: add missing MODULE_DEVICE_TABLE 2021-06-29 23:55:12 +02:00
restart-poweroff.c power: reset: restart-poweroff: Add missing MODULE_DEVICE_TABLE 2021-04-12 21:18:52 +02:00
rmobile-reset.c
sc27xx-poweroff.c
st-poweroff.c
syscon-poweroff.c power: reset: Use printk format symbol resolver 2020-11-30 02:10:18 +01:00
syscon-reboot-mode.c
syscon-reboot.c
tps65086-restart.c power: reset: Add TPS65086 restart driver 2021-08-16 14:48:51 +02:00
vexpress-poweroff.c power: reset: remove unneeded semicolon 2021-03-22 14:55:50 +01:00
xgene-reboot.c