]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpio/gpio-brcmstb.c
Merge tag 'char-misc-4.13-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[karo-tx-linux.git] / drivers / gpio / gpio-brcmstb.c
index 42d51c59ed5024b861936f14235143bdc0aa30a2..e6489143721a926f5c85d5d416349f35691f0c5d 100644 (file)
@@ -461,6 +461,7 @@ static int brcmstb_gpio_probe(struct platform_device *pdev)
                bank->id = num_banks;
                if (bank_width <= 0 || bank_width > MAX_GPIO_PER_BANK) {
                        dev_err(dev, "Invalid bank width %d\n", bank_width);
+                       err = -EINVAL;
                        goto fail;
                } else {
                        bank->width = bank_width;