]> Pileus Git - ~andy/linux/commitdiff
gpio-ml-ioh: fix error return code in ioh_gpio_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 21 May 2013 15:11:10 +0000 (23:11 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 30 May 2013 17:39:20 +0000 (19:39 +0200)
Fix to return a negative error code in the irq descs alloc error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ml-ioh.c

index 0966f2637ad2dc849f12d7224dbf7d6af1c75c13..6da6d7667c6d70f3f57f59e5a13bfb616a5dd4a8 100644 (file)
@@ -465,6 +465,7 @@ static int ioh_gpio_probe(struct pci_dev *pdev,
                        dev_warn(&pdev->dev,
                                "ml_ioh_gpio: Failed to get IRQ base num\n");
                        chip->irq_base = -1;
+                       ret = irq_base;
                        goto err_irq_alloc_descs;
                }
                chip->irq_base = irq_base;