]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
irqchip/ls-extirq: Fix devm_of_iomap() error check
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 24 Feb 2026 11:36:10 +0000 (13:36 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 24 Feb 2026 17:35:49 +0000 (18:35 +0100)
commitfe5669e363b129cde285bfb4d45abb72d1d77cfc
tree58b7be6c7372e89fea2bcf3411ee4702a4ce1b66
parente08f2adcf990b8cf272e90898401a9e481c1c667
irqchip/ls-extirq: Fix devm_of_iomap() error check

The devm_of_iomap() function returns an ERR_PTR() encoded error code on
failure. Replace the incorrect check against NULL with IS_ERR().

Fixes: 05cd654829dd ("irqchip/ls-extirq: Convert to a platform driver to make it work again")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20260224113610.1129022-3-ioana.ciornei@nxp.com
Closes: https://lore.kernel.org/all/aYXvfbfT6w0TMsXS@stanley.mountain/
drivers/irqchip/irq-ls-extirq.c