gpio: pca953x: Fully convert to device managed resources
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Sep 2023 13:40:33 +0000 (16:40 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 11 Sep 2023 06:59:59 +0000 (08:59 +0200)
commit53c59d66c44c5eb98b34da9967f937e5387f8624
tree2c1d393edbe087060a9ad807a75e47eccb63cfdc
parent2f4d3e293392571e02b106c8b431b638bd029276
gpio: pca953x: Fully convert to device managed resources

Curtrently the error path is unsynchronised with removal due to
regulator being disabled before other device managed resources
are handled. Correct that by wrapping regulator enablement in
the respective call.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-pca953x.c