gpio: don't warn about removing GPIO chips with active users anymore
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 21 Feb 2024 10:21:03 +0000 (11:21 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 26 Feb 2024 15:43:51 +0000 (16:43 +0100)
commit5d60c1e61fda628619605f5917aba62f071b7106
tree79525b695d1f41107c6cae9af9eae87e3eebfedc
parent840a97e2fbaf5315f9705b97e99aa97e5e5fd6cb
gpio: don't warn about removing GPIO chips with active users anymore

With SRCU we can now correctly handle the situation when a GPIO provider
is removed while having users still holding references to GPIO
descriptors. Remove all warnings emitted in this situation.

Suggested-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Herve Codina <herve.codina@bootlin.com>
drivers/gpio/gpiolib.c