]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/44x: Drop legacy-of-mm-gpiochip.h header
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 18 Aug 2025 12:17:35 +0000 (14:17 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Sat, 6 Sep 2025 10:37:11 +0000 (16:07 +0530)
commitd2ad26e7b67e5a3d73221daf8207e848dd819bd4
tree19d0d835990461852cc4a5f28b6156a58f8f0e2d
parent1044dbaf2a77c9e1143753a620d830943da6a193
powerpc/44x: Drop legacy-of-mm-gpiochip.h header

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")]

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/2f8f16eac72b9ec202b6e593939b44308891a661.1755519343.git.christophe.leroy@csgroup.eu
arch/powerpc/platforms/44x/Kconfig
arch/powerpc/platforms/44x/gpio.c