bmips: sercomm-msp430: fix duplicated definition

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 <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2025-05-09 07:23:00 +02:00
parent 59764a7079
commit 538efe5d6b

View file

@ -256,7 +256,7 @@ static int msp430_pattern_set(struct led_classdev *led_cdev,
return 0; 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 device *dev = &spi->dev;
struct led_init_data init_data = {}; struct led_init_data init_data = {};
@ -346,7 +346,7 @@ static int msp430_leds_probe(struct spi_device *spi)
continue; continue;
} }
rc = msp430_led(spi, child, reg); rc = msp430_led_probe(spi, child, reg);
if (rc < 0) { if (rc < 0) {
of_node_put(child); of_node_put(child);
return rc; return rc;