summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
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;
}