linux/drivers/reset
Wei Yongjun 91105ed604 reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io()
In case of error, the function devm_platform_get_and_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Fixes: 453ed4283b ("reset: mchp: sparx5: add switch reset driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210519141638.3052456-1-weiyongjun1@huawei.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2021-06-07 11:26:31 +02:00
..
hisilicon reset: hi6220: Use the correct HiSilicon copyright 2021-06-07 10:44:38 +02:00
sti reset: sti/syscfg: replace comma with semicolon 2021-05-10 09:41:43 +02:00
tegra treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
core.c reset: whitespace fixes 2021-05-10 09:41:40 +02:00
Kconfig reset: RESET_INTEL_GW should depend on X86 2021-05-10 09:41:45 +02:00
Makefile reset: mchp: sparx5: add switch reset driver 2021-05-10 09:40:05 +02:00
reset-a10sr.c reset: a10sr: add missing of_match_table reference 2021-05-10 09:48:17 +02:00
reset-ath79.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
reset-axs10x.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
reset-bcm6345.c reset: bcm6345: Make reset_control_ops const 2021-05-10 09:40:03 +02:00
reset-berlin.c reset: berlin: replace unsigned with unsigned int 2021-05-10 09:41:42 +02:00
reset-brcmstb-rescal.c reset: Add Broadcom STB RESCAL reset controller 2020-01-06 10:02:03 +01:00
reset-brcmstb.c reset: brcmstb: Add missing MODULE_DEVICE_TABLE 2021-05-12 08:01:26 +02:00
reset-hsdk.c ARC: HSDK: improve reset driver 2019-01-07 16:38:26 +01:00
reset-imx7.c ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
reset-intel-gw.c reset: intel: fix a compile warning about REG_OFFSET redefined 2020-07-20 11:01:19 +02:00
reset-k210.c riscv: Add Canaan Kendryte K210 reset controller 2021-01-14 15:08:53 -08:00
reset-lantiq.c reset: lantiq: use devm_reset_controller_register() 2021-06-07 11:26:31 +02:00
reset-lpc18xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
reset-meson-audio-arb.c reset: meson-audio-arb: add sm1 support 2019-10-03 19:56:51 +02:00
reset-meson.c reset: meson: make it possible to build as a module 2020-11-16 17:05:29 +01:00
reset-microchip-sparx5.c reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io() 2021-06-07 11:26:31 +02:00
reset-npcm.c reset: npcm: add NPCM reset controller driver 2020-01-02 12:25:05 +01:00
reset-oxnas.c reset: oxnas: replace file name with short description 2021-05-10 09:40:04 +02:00
reset-pistachio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
reset-qcom-aoss.c reset: qcom-aoss: Allow CONFIG_RESET_QCOM_AOSS to be a tristate 2020-01-08 10:26:14 +01:00
reset-qcom-pdc.c reset: qcom: PDC Global (Power Domain Controller) reset controller 2018-10-05 10:33:44 +02:00
reset-raspberrypi.c reset: raspberrypi: Release firmware handle on unbind 2021-03-22 17:59:51 +01:00
reset-scmi.c reset: reset-scmi: Port driver to the new scmi_reset_proto_ops interface 2021-03-30 16:34:54 +01:00
reset-simple.c reset: simple: add BCM4908 MISC PCIe reset controller support 2021-01-08 13:00:59 +01:00
reset-socfpga.c reset: socfpga: add error handling and release mem-region 2020-12-01 11:37:12 +01:00
reset-stm32mp1.c reset: stm32mp1: Enable stm32mp1 reset driver 2018-03-27 10:44:04 +02:00
reset-sunxi.c reset: Move reset-simple header out of drivers/reset 2020-06-16 14:19:56 +02:00
reset-ti-sci.c firmware: ti_sci: Replace HTTP links with HTTPS ones 2020-07-24 14:44:52 -07:00
reset-ti-syscon.c reset: ti-syscon: fix to_ti_syscon_reset_data macro 2021-05-10 09:41:43 +02:00
reset-uniphier-glue.c reset: Move reset-simple header out of drivers/reset 2020-06-16 14:19:56 +02:00
reset-uniphier.c reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses 2021-05-10 09:41:44 +02:00
reset-zynq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
reset-zynqmp.c reset: zynqmp: replace spaces with tabs 2021-05-10 09:40:03 +02:00