]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/cpm2: Drop legacy-of-mm-gpiochip.h header
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 18 Aug 2025 12:14:36 +0000 (14:14 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Sat, 6 Sep 2025 10:35:26 +0000 (16:05 +0530)
commit7f9bcf13069731fac48d8b44086fab179fbc04c9
tree94b3f7b8e610bb57814268ef81deda14ce1fe95e
parent58f5382a482ba7313085de57767bb784f211b475
powerpc/cpm2: 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/2662f24c539db393f11b27f0feae2dc14bb2f08f.1755518891.git.christophe.leroy@csgroup.eu
arch/powerpc/platforms/8xx/Kconfig
arch/powerpc/platforms/Kconfig
arch/powerpc/sysdev/cpm_common.c