From 538efe5d6bd6207fcc94c7df08cda1ae5fa9d541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 9 May 2025 07:23:00 +0200 Subject: [PATCH] bmips: sercomm-msp430: fix duplicated definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This problem arised when adding support for 6.12, but it should be fixed on older kernels too. Signed-off-by: Álvaro Fernández Rojas --- target/linux/bmips/files/drivers/leds/leds-sercomm-msp430.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/bmips/files/drivers/leds/leds-sercomm-msp430.c b/target/linux/bmips/files/drivers/leds/leds-sercomm-msp430.c index d3167de053c..5e5d20d47bd 100644 --- a/target/linux/bmips/files/drivers/leds/leds-sercomm-msp430.c +++ b/target/linux/bmips/files/drivers/leds/leds-sercomm-msp430.c @@ -256,7 +256,7 @@ static int msp430_pattern_set(struct led_classdev *led_cdev, return 0; } -static int msp430_led(struct spi_device *spi, struct device_node *nc, u8 id) +static int msp430_led_probe(struct spi_device *spi, struct device_node *nc, u8 id) { struct device *dev = &spi->dev; struct led_init_data init_data = {}; @@ -346,7 +346,7 @@ static int msp430_leds_probe(struct spi_device *spi) continue; } - rc = msp430_led(spi, child, reg); + rc = msp430_led_probe(spi, child, reg); if (rc < 0) { of_node_put(child); return rc;