qbman: Fix platform_get_irq() error checks

This commit is contained in:
Sebastian Huber 2017-05-17 09:25:39 +02:00
parent cd089b9e05
commit 721b1c1763
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}