gpio: tb10x: Fix an error handling path in tb10x_gpio_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Sep 2023 06:13:21 +0000 (08:13 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 20 Sep 2023 09:52:14 +0000 (11:52 +0200)
commitb547b5e52a0587e6b25ea520bf2f9e03d00cbcb6
tree34f2e8a91643bfa22c64b85e72d1908b146423cd
parent2d48c30176fa0fd61202b859d7454249f2b22bdc
gpio: tb10x: Fix an error handling path in tb10x_gpio_probe()

If an error occurs after a successful irq_domain_add_linear() call, it
should be undone by a corresponding irq_domain_remove(), as already done
in the remove function.

Fixes: c6ce2b6bffe5 ("gpio: add TB10x GPIO driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-tb10x.c