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:
parent
59764a7079
commit
538efe5d6b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue