The LED names are expected to be unique in the system. Use KERN_WARNING log level to notify the user about the matter. Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> --- drivers/leds/led-class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index 4ca37b8..bbe0294 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -249,7 +249,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev) return PTR_ERR(led_cdev->dev); if (ret) - dev_info(parent, "Led %s renamed to %s due to name collision", + dev_warn(parent, "Led %s renamed to %s due to name collision", led_cdev->name, dev_name(led_cdev->dev)); #ifdef CONFIG_LEDS_TRIGGERS -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html