soc: fsl: qe: Drop legacy-of-mm-gpiochip.h header from GPIO driver
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Sep 2025 16:23:23 +0000 (18:23 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 22 Sep 2025 14:37:24 +0000 (16:37 +0200)
commite9713655b29a47d23cbf07aacf50b0ce8ee0a850
tree209e182bd364e4b7829300ddff64b842e6a3c275
parent156460811def1ae699eebe40d9678e4ce3d1d9bc
soc: fsl: qe: Drop legacy-of-mm-gpiochip.h header from GPIO driver

Remove legacy-of-mm-gpiochip.h header file. The above mentioned
file provides an OF API that's deprecated. There is no agnostic
alternatives to it and we have to open code the logic which was
hidden behind of_mm_gpiochip_add_data(). Note, most of the GPIO
drivers are using their own labeling schemas and resource retrieval
that only a few may gain of the code deduplication, so whenever
alternative is appear we can move drivers again to use that one.

As a side effect this change fixes a potential memory leak on
an error path, if of_mm_gpiochip_add_data() fails.

[Text copied from commit 34064c8267a6 ("powerpc/8xx: Drop
legacy-of-mm-gpiochip.h header")]

Suggested-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/e8a5d2c5b72233bd36da7fecc0a551ca54d39478.1758212309.git.christophe.leroy@csgroup.eu
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
arch/powerpc/platforms/Kconfig
drivers/soc/fsl/qe/gpio.c