aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/soc/ixp4xx/ixp4xx-qmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/ixp4xx/ixp4xx-qmgr.c b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
index 13a8a13c9b01..bb90670ec160 100644
--- a/drivers/soc/ixp4xx/ixp4xx-qmgr.c
+++ b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
@@ -385,8 +385,8 @@ static int ixp4xx_qmgr_probe(struct platform_device *pdev)
385 if (!res) 385 if (!res)
386 return -ENODEV; 386 return -ENODEV;
387 qmgr_regs = devm_ioremap_resource(dev, res); 387 qmgr_regs = devm_ioremap_resource(dev, res);
388 if (!qmgr_regs) 388 if (IS_ERR(qmgr_regs))
389 return -ENOMEM; 389 return PTR_ERR(qmgr_regs);
390 390
391 irq1 = platform_get_irq(pdev, 0); 391 irq1 = platform_get_irq(pdev, 0);
392 if (irq1 <= 0) 392 if (irq1 <= 0)