kernel_optimize_test/drivers/power/reset
Miaoqian Lin 43f2fe2a69 power: reset: gemini-poweroff: Fix IRQ check in gemini_poweroff_probe
[ Upstream commit ba18dad0fb880cd29aa97b6b75560ef14d1061ba ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:14 +02:00
..
arm-versatile-reboot.c
as3722-poweroff.c
at91-poweroff.c
at91-reset.c
at91-sama5d2_shdwc.c
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-04-08 14:40:14 +02:00
gpio-poweroff.c
gpio-restart.c
hisi-reboot.c
Kconfig
keystone-reset.c
linkstation-poweroff.c
ltc2952-poweroff.c
Makefile
msm-poweroff.c
mt6323-poweroff.c power: reset: mt6397: Check for null res pointer 2022-01-27 10:54:00 +01:00
nvmem-reboot-mode.c
ocelot-reset.c
oxnas-restart.c
piix4-poweroff.c
qcom-pon.c
qnap-poweroff.c
reboot-mode.c
restart-poweroff.c
rmobile-reset.c
sc27xx-poweroff.c
st-poweroff.c
syscon-poweroff.c
syscon-reboot-mode.c
syscon-reboot.c
vexpress-poweroff.c
xgene-reboot.c
zx-reboot.c