[PATCH 3/3] leds: bcm6328, bcm6358: Remove the registration debug message
From: Carlo Szelinsky
Date: Sat Nov 28 2026 - 16:52:54 EST
The debug message prints cdev.name. Since the drivers register with
devm_led_classdev_register_ext(), they no longer set cdev.name, so the
message says "registered LED (null)" for every LED.
The LED core prints a similar debug message for the same device after
it registers the LED, and with the first patch of this series it shows
the right name. Remove the message instead of fixing it.
Fixes: e4e912a349b2 ("leds: bcm6328, bcm6358: use struct led_init_data when registering")
Signed-off-by: Carlo Szelinsky <github@xxxxxxxxxxxx>
---
drivers/leds/leds-bcm6328.c | 2 --
drivers/leds/leds-bcm6358.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c
index 667ff31eb8fa..2d03715d3fb5 100644
--- a/drivers/leds/leds-bcm6328.c
+++ b/drivers/leds/leds-bcm6328.c
@@ -383,8 +383,6 @@ static int bcm6328_led(struct device *dev, struct device_node *nc, u32 reg,
if (rc < 0)
return rc;
- dev_dbg(dev, "registered LED %s\n", led->cdev.name);
-
return 0;
}
diff --git a/drivers/leds/leds-bcm6358.c b/drivers/leds/leds-bcm6358.c
index ab15c591386c..7876423b0d0f 100644
--- a/drivers/leds/leds-bcm6358.c
+++ b/drivers/leds/leds-bcm6358.c
@@ -138,8 +138,6 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg,
if (rc < 0)
return rc;
- dev_dbg(dev, "registered LED %s\n", led->cdev.name);
-
return 0;
}
--
2.43.0