linux/drivers/power/reset
Dan Carpenter 62f4b33bf2 power: reset: xgene-reboot: Fix a NULL vs IS_ERR() test
The devm_platform_ioremap_resource() function returns error points.  It
never returns NULL.  Update the check accordingly.

Fixes: 7ddfd33c6e ("power: reset: xgene-reboot: Use devm_platform_ioremap_resource() helper")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/fe1b90d0-7234-4e03-accc-69a119f6a7eb@moroto.mountain
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2024-02-21 21:13:37 +01:00
..
arm-versatile-reboot.c power/reset: arm-versatile: Fix refcount leak in versatile_reboot_probe 2022-06-09 21:08:38 +02:00
as3722-poweroff.c power: reset: as3722-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:26 +01:00
at91-poweroff.c power: reset: at91: Drop '__init' from at91_wakeup_status() 2023-12-24 23:43:10 +01:00
at91-reset.c power: reset: at91-reset: Convert to platform remove callback returning void 2023-11-15 23:15:40 +01:00
at91-sama5d2_shdwc.c power: reset: at91: Drop '__init' from at91_wakeup_status() 2023-12-24 23:43:10 +01:00
atc260x-poweroff.c power: reset: atc260x-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:24 +01:00
axxia-reset.c power: reset: axxia-reset: Use devm_register_sys_off_handler(RESTART) 2024-02-13 02:17:25 +01:00
brcm-kona-reset.c power: reset: brcm-kona-reset: Use devm_register_sys_off_handler(RESTART) 2024-02-13 02:17:25 +01:00
brcmstb-reboot.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
gemini-poweroff.c power: reset: gemini-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:26 +01:00
gpio-poweroff.c power: reset: gpio-poweroff: make sys handler priority configurable 2023-10-13 02:22:36 +02:00
gpio-restart.c power: reset: gpio-restart: Use devm_register_sys_off_handler() 2023-12-24 22:54:01 +01:00
hisi-reboot.c power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE 2021-04-09 13:50:01 +02:00
Kconfig Power Supply Fixes for 6.6 cycle 2023-10-21 00:55:43 +02:00
keystone-reset.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +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-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:38 +01:00
Makefile power: reset: oxnas-restart: remove obsolete restart driver 2023-07-20 00:29:18 +02:00
msm-poweroff.c power: reset: msm-poweroff: Use devm_register_sys_off_handler(RESTART) 2024-02-13 02:17:26 +01:00
mt6323-poweroff.c power: reset: mt6323-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:25 +01:00
nvmem-reboot-mode.c power: reset: nvmem-reboot-mode: quiet some device deferrals 2023-09-12 20:15:28 +02:00
ocelot-reset.c power: reset: ocelot: Convert to devm_platform_ioremap_resource() 2023-07-19 23:31:49 +02:00
odroid-go-ultra-poweroff.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +02:00
piix4-poweroff.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pwr-mlxbf.c power: reset: pwr-mlxbf: support graceful reboot instead of emergency reset 2023-11-15 23:04:48 +01:00
qcom-pon.c power: reset: qcom-pon: add support for pm8941-pon 2023-06-09 21:18:17 +02:00
qnap-poweroff.c power: reset: qnap-poweroff: Convert to platform remove callback returning void 2023-11-15 23:15:39 +01:00
reboot-mode.c power: reset: reboot-mode: Fix author email format 2019-09-02 21:05:59 +02:00
regulator-poweroff.c power: reset: regulator-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:26 +01:00
restart-poweroff.c power: reset: restart-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:26 +01:00
rmobile-reset.c power: reset: rmobile-reset: Use devm_register_sys_off_handler(RESTART) 2024-02-13 02:17:25 +01:00
sc27xx-poweroff.c power supply and reset changes for the v5.7 series 2020-04-05 13:47:57 -07:00
st-poweroff.c power: reset: st-poweroff: use builtin_platform_driver() to simplify code 2023-09-12 20:25:54 +02:00
syscon-poweroff.c power: reset: syscon-poweroff: Use devm_register_sys_off_handler(POWER_OFF) 2024-02-13 02:17:26 +01:00
syscon-reboot-mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
syscon-reboot.c power: Explicitly include correct DT includes 2023-07-19 22:47:03 +02:00
tps65086-restart.c power: reset: tps65086-restart: Remove unneeded device data struct 2024-02-13 02:17:25 +01:00
vexpress-poweroff.c power: reset: vexpress: Use device_get_match_data() 2023-10-21 00:57:55 +02:00
xgene-reboot.c power: reset: xgene-reboot: Fix a NULL vs IS_ERR() test 2024-02-21 21:13:37 +01:00