gpio: eic-sprd: unregister from the irq notifier on remove()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 12 Sep 2023 09:45:17 +0000 (11:45 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 13 Sep 2023 12:13:06 +0000 (14:13 +0200)
commitdbd31c71c5b2cc6dd7acd853e52fb6e7a37fdf61
tree10bb2b7a459783431b66e10e4e535fa9c890f28d
parenta5c612b9dbe14fee62829b4aecde17d670effed2
gpio: eic-sprd: unregister from the irq notifier on remove()

This is a tristate module, it can be unloaded. We need to cleanup properly
and unregister from the interrupt notifier on driver detach.

Fixes: b32415652a4d ("gpio: eic-sprd: use atomic notifiers to notify all chips about irqs")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
drivers/gpio/gpio-eic-sprd.c