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>
This commit is contained in:
Sakari Ailus 2015-03-26 16:42:06 -07:00 committed by Bryan Wu
parent 6f06c7f87c
commit ccdc45075a
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
return ret; return ret;
led_cdev->dev = device_create_with_groups(leds_class, parent, 0, 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)) if (IS_ERR(led_cdev->dev))
return PTR_ERR(led_cdev->dev); return PTR_ERR(led_cdev->dev);