Просмотр исходного кода

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 <[email protected]>
Álvaro Fernández Rojas 7 месяцев назад
Родитель
Сommit
538efe5d6b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      target/linux/bmips/files/drivers/leds/leds-sercomm-msp430.c

+ 2 - 2
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;