diff options
author | Sakari Ailus | 2015-03-26 16:42:06 -0700 |
---|---|---|
committer | Bryan Wu | 2015-03-30 14:26:32 -0700 |
commit | ccdc45075aeaaa144af4177b85570eb26c2f5a8b (patch) | |
tree | 1c6fa0f53bb4e9f6191fb5eca820cf1ebbb869a6 | |
parent | 6f06c7f87cf54fa0fa6f95963d7c0d436eb56f43 (diff) |
leds: Don't treat the LED name as a format string
The LED name was wrongly interpreted as format string. Stop doing that.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index 82e3844c185c..728681debdbe 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -252,7 +252,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev) return ret; led_cdev->dev = device_create_with_groups(leds_class, parent, 0, - led_cdev, led_cdev->groups, name); + led_cdev, led_cdev->groups, "%s", name); if (IS_ERR(led_cdev->dev)) return PTR_ERR(led_cdev->dev); |