aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-12-21 02:35:58 -0500
committerLinus Walleij <linus.walleij@linaro.org>2014-01-02 07:57:10 -0500
commit3509c6fa05f013047b6039e2a134cd1e2db76114 (patch)
treede2838ad0e241d61efa9038b163be14aced5034c /drivers/gpio
parent5ea80e4910cd47270ae4c13b1fce0899aaa28410 (diff)
gpio: mvebu: Do not hard code error code
Return the appropriate error code instead of hardcoding it. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-mvebu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index bc78a9da5502..3b1fd1ce460f 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -676,7 +676,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
676 mvchip->irqbase = irq_alloc_descs(-1, 0, ngpios, -1); 676 mvchip->irqbase = irq_alloc_descs(-1, 0, ngpios, -1);
677 if (mvchip->irqbase < 0) { 677 if (mvchip->irqbase < 0) {
678 dev_err(&pdev->dev, "no irqs\n"); 678 dev_err(&pdev->dev, "no irqs\n");
679 return -ENOMEM; 679 return mvchip->irqbase;
680 } 680 }
681 681
682 gc = irq_alloc_generic_chip("mvebu_gpio_irq", 2, mvchip->irqbase, 682 gc = irq_alloc_generic_chip("mvebu_gpio_irq", 2, mvchip->irqbase,