From: Sakari Ailus Date: Thu, 26 Mar 2015 23:42:06 +0000 (-0700) Subject: leds: Don't treat the LED name as a format string X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ccdc45075aeaaa144af4177b85570eb26c2f5a8b;p=deliverable%2Flinux.git 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 Signed-off-by: Bryan Wu Signed-off-by: Ricardo Ribalda Delgado --- 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);