Skip to content

Commit

Permalink
leds: Use log level warn instead of info when telling about a name clash
Browse files Browse the repository at this point in the history
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@linux.intel.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
  • Loading branch information
Sakari Ailus authored and Bryan Wu committed Mar 30, 2015
1 parent a96aa64 commit 6f06c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/led-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,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
Expand Down

0 comments on commit 6f06c7f

Please sign in to comment.