aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ml-ioh.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-21 11:11:10 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-05-30 13:39:20 -0400
commitdf46dce09113ea0a52ce7403d35087e167f3a460 (patch)
tree0d0ce0fbd2b9b71b54e7997fe90d4cbf91043241 /drivers/gpio/gpio-ml-ioh.c
parent611a485b5fac3a6dce32a1ae6ddd3e0df215aecd (diff)
gpio-ml-ioh: fix error return code in ioh_gpio_probe()
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>
Diffstat (limited to 'drivers/gpio/gpio-ml-ioh.c')
-rw-r--r--drivers/gpio/gpio-ml-ioh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c
index 0966f2637ad2..6da6d7667c6d 100644
--- a/drivers/gpio/gpio-ml-ioh.c
+++ b/drivers/gpio/gpio-ml-ioh.c
@@ -465,6 +465,7 @@ static int ioh_gpio_probe(struct pci_dev *pdev,
465 dev_warn(&pdev->dev, 465 dev_warn(&pdev->dev,
466 "ml_ioh_gpio: Failed to get IRQ base num\n"); 466 "ml_ioh_gpio: Failed to get IRQ base num\n");
467 chip->irq_base = -1; 467 chip->irq_base = -1;
468 ret = irq_base;
468 goto err_irq_alloc_descs; 469 goto err_irq_alloc_descs;
469 } 470 }
470 chip->irq_base = irq_base; 471 chip->irq_base = irq_base;