commit | 4c0a8899d9c215633ef79805c68b2566c775d43d | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Wed Jun 26 10:09:00 2019 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Jun 27 15:56:52 2019 +0100 |
tree | 699712e9c7161cf7d2fb6f2212a9f55b87932bd8 | |
parent | 04ce935c6b2a8a802750e6b2beda802b61495b7c [diff] |
gpio: siox: Do not call gpiochip_remove() on errorpath gpiochip_remove() was called on the errorpath if gpiochip_add() failed: this is wrong, if the chip failed to add it is not there so it should not be removed. Fixes: be8c8facc707 ("gpio: new driver to work with a 8x12 siox") Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>