]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpio/gpio-mxc.c
Merge tag 'regmap-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[karo-tx-linux.git] / drivers / gpio / gpio-mxc.c
index 3307f6db3a925fb3469c29f34eb69bfb93ca312a..db83b3c0a44959f47851d3705fe7bb5b337a8577 100644 (file)
@@ -422,7 +422,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
        port->irq_high = platform_get_irq(pdev, 1);
        port->irq = platform_get_irq(pdev, 0);
        if (port->irq < 0)
-               return -EINVAL;
+               return port->irq;
 
        /* disable the interrupt and clear the status */
        writel(0, port->base + GPIO_IMR);