diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2026-07-01 12:11:40 +0200 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2026-07-17 12:43:09 +0200 |
| commit | efa0ec75a010df67e4fcacc43b9ff1d6f531f015 (patch) | |
| tree | 50ca934de627a2e446d6b4faeddc719a19313283 /arch/mips | |
| parent | 7b3b8146d3fcd4f324f3a688e95038e47f24f84c (diff) | |
| download | linux-next-efa0ec75a010df67e4fcacc43b9ff1d6f531f015.tar.gz linux-next-efa0ec75a010df67e4fcacc43b9ff1d6f531f015.zip | |
MIPS: TXX9: Reduce TXX9_IOCLED_MAXLEDS to 3
The number of available GPIOs and LEDs on the TXx9 IOC FPGA depends on
the platform. Since commit 455481fc9a807798 ("MIPS: Remove TX39XX
support"), the only remaining platform (rbtx4927) supports just three.
Hence reduce the maximum number, to reduce allocation size.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
| -rw-r--r-- | arch/mips/txx9/generic/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 97102d3327d2..611ccbe429cf 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -569,7 +569,7 @@ void __init txx9_ndfmc_init(unsigned long baseaddr, #if IS_ENABLED(CONFIG_LEDS_GPIO) static DEFINE_SPINLOCK(txx9_iocled_lock); -#define TXX9_IOCLED_MAXLEDS 8 +#define TXX9_IOCLED_MAXLEDS 3 /* rbtx4927 */ struct txx9_iocled_data { struct gpio_chip chip; |
