summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-17 09:25:39 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-23 09:24:05 +0200
commit721b1c17631c36166714c94c63ad38525e0de0dc (patch)
tree303f946b370faa740d98855fe932f1c50b63ebbc /linux
parentcd089b9e05aad31244059ba88988afbe1db02e5e (diff)
downloadrtems-libbsd-721b1c17631c36166714c94c63ad38525e0de0dc.tar.bz2
qbman: Fix platform_get_irq() error checks
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/soc/fsl/qbman/bman_ccsr.c2
-rw-r--r--linux/drivers/soc/fsl/qbman/qman_ccsr.c2
-rw-r--r--linux/drivers/soc/fsl/qbman/qman_portal.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/soc/fsl/qbman/bman_ccsr.c b/linux/drivers/soc/fsl/qbman/bman_ccsr.c
index 1df1d9c8..9fa5a6b1 100644
--- a/linux/drivers/soc/fsl/qbman/bman_ccsr.c
+++ b/linux/drivers/soc/fsl/qbman/bman_ccsr.c
@@ -223,7 +223,7 @@ static int fsl_bman_probe(struct platform_device *pdev)
bm_set_memory(fbpr_a, fbpr_sz);
err_irq = platform_get_irq(pdev, 0);
- if (err_irq <= 0) {
+ if (err_irq < 0) {
dev_info(dev, "Can't get %s IRQ\n", node->full_name);
return -ENODEV;
}
diff --git a/linux/drivers/soc/fsl/qbman/qman_ccsr.c b/linux/drivers/soc/fsl/qbman/qman_ccsr.c
index 7def3431..51fc7bfa 100644
--- a/linux/drivers/soc/fsl/qbman/qman_ccsr.c
+++ b/linux/drivers/soc/fsl/qbman/qman_ccsr.c
@@ -769,7 +769,7 @@ static int fsl_qman_probe(struct platform_device *pdev)
}
err_irq = platform_get_irq(pdev, 0);
- if (err_irq <= 0) {
+ if (err_irq < 0) {
dev_info(dev, "Can't get %s property 'interrupts'\n",
node->full_name);
return -ENODEV;
diff --git a/linux/drivers/soc/fsl/qbman/qman_portal.c b/linux/drivers/soc/fsl/qbman/qman_portal.c
index 640343ac..ffef1854 100644
--- a/linux/drivers/soc/fsl/qbman/qman_portal.c
+++ b/linux/drivers/soc/fsl/qbman/qman_portal.c
@@ -278,7 +278,7 @@ static int qman_portal_probe(struct platform_device *pdev)
pcfg->channel = val;
pcfg->cpu = -1;
irq = platform_get_irq(pdev, 0);
- if (irq <= 0) {
+ if (irq < 0) {
dev_err(dev, "Can't get %s IRQ\n", node->full_name);
return -ENXIO;
}