Commit c8bb0f00 authored by Dan Carpenter's avatar Dan Carpenter Committed by Thomas Gleixner
Browse files

irqchip/mvebu-gicp: Fix an IS_ERR() vs NULL check in probe()



ioremap() never returns error pointers, it returns NULL on error.  Fix the
check to match.

Fixes: 3c3d7dba ("irqchip/mvebu-gicp: Clear pending interrupts on init")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/aKRGcgMeaXm2TMIC@stanley.mountain
parent c2bac680
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
	}

	base = ioremap(gicp->res->start, resource_size(gicp->res));
	if (IS_ERR(base)) {
	if (!base) {
		dev_err(&pdev->dev, "ioremap() failed. Unable to clear pending interrupts.\n");
	} else {
		for (i = 0; i < 64; i++)