powerpc/8xx: Drop legacy-of-mm-gpiochip.h header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 18 Nov 2024 12:31:03 +0000 (14:31 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 16 Dec 2024 08:15:27 +0000 (13:45 +0530)
commit34064c8267a61063d684408db6ae78b571a9999d
tree7e4cf867d27dd86937c71cfdbba40fb302ca8463
parentf117051514c33c43b7e0c517e0ae9e0189e884da
powerpc/8xx: 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.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241118123254.620519-1-andriy.shevchenko@linux.intel.com
arch/powerpc/platforms/8xx/cpm1.c