]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: gpio-altera: Remove gpiochip on probe failure.
authorPhil Reid <preid@electromag.com.au>
Fri, 15 Jan 2016 03:32:22 +0000 (11:32 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Jan 2016 09:50:22 +0000 (10:50 +0100)
commit73c13c83491142e2ee7850159fc73b5e0967806f
treebe726c397004417ccdcea53ec26b3c02cde297a6
parent92e963f50fc74041b5e9e744c330dca48e04f08d
gpio: gpio-altera: Remove gpiochip on probe failure.

On failure to setup the irq altera_gpio_probe would return an error
but not go to cleanup. This resulted in kernel fault
"Unable to handle kernel paging request at virtual address xxxxxxxx"
later on in of_gpiochip_find_and_xlate.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-altera.c