gpio: mvebu: Fix probe cleanup on error
authorAndrew Lunn <andrew@lunn.ch>
Fri, 9 Jan 2015 23:34:48 +0000 (00:34 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:24 +0000 (17:23 +0100)
commitf1d2d081e8d13b23ea53f32932ae03af76934b9a
tree67b668d1e46c6e589cbc9765027710f85bb093f1
parenta4319a611bcdc32f042578c9c9b75bbdc23149e3
gpio: mvebu: Fix probe cleanup on error

Ensure that when there is an error during probe that the gpiochip is
removed and the generic irq chip is removed.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c