mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
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 455481fc9a ("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>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
7b3b8146d3
commit
efa0ec75a0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user