mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
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: 3c3d7dbab2 ("irqchip/mvebu-gicp: Clear pending interrupts on init")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
This commit is contained in:
1 parent
c2bac68067
commit
c8bb0f00a4
1 file changed
+1
-1
@@ -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++)
|
||||
|
||||
Reference in new issue
Block a user