aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-03-26 19:42:05 -0400
committerBryan Wu <cooloney@gmail.com>2015-03-30 17:26:25 -0400
commit6f06c7f87cf54fa0fa6f95963d7c0d436eb56f43 (patch)
tree6e523bc5cc372257a17a8d7e5f753c6296c016b6
parenta96aa64cb5723d941de879a9cd1fea025d6acb1b (diff)
leds: Use log level warn instead of info when telling about a name clash
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>
-rw-r--r--drivers/leds/led-class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index fc57d9c2e6ad..82e3844c185c 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -257,7 +257,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
257 return PTR_ERR(led_cdev->dev); 257 return PTR_ERR(led_cdev->dev);
258 258
259 if (ret) 259 if (ret)
260 dev_info(parent, "Led %s renamed to %s due to name collision", 260 dev_warn(parent, "Led %s renamed to %s due to name collision",
261 led_cdev->name, dev_name(led_cdev->dev)); 261 led_cdev->name, dev_name(led_cdev->dev));
262 262
263#ifdef CONFIG_LEDS_TRIGGERS 263#ifdef CONFIG_LEDS_TRIGGERS