summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-07 22:23:20 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-07 22:23:20 +0400
commita4aaf2e0dfcc05578e8c822fce975a7d5836dc7f (patch)
tree5185561547458f97069cad703a6b74fcec7bbf0d
parentcf8a1af855cfce135c31b84d29a7cb870638cdaa (diff)
parent08ff4cbe10da402e7c493ac72e298975f62a9e78 (diff)
downloadlinux-a4aaf2e0dfcc05578e8c822fce975a7d5836dc7f.tar.xz
Merge branch 'powercap'
* powercap: PowerCap: Fix build error with option -Werror=format-security
-rw-r--r--drivers/powercap/powercap_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/powercap/powercap_sys.c b/drivers/powercap/powercap_sys.c
index 21814f90a44b..8d0fe431dbdd 100644
--- a/drivers/powercap/powercap_sys.c
+++ b/drivers/powercap/powercap_sys.c
@@ -625,7 +625,7 @@ struct powercap_control_type *powercap_register_control_type(
control_type->ops = ops;
INIT_LIST_HEAD(&control_type->node);
control_type->dev.class = &powercap_class;
- dev_set_name(&control_type->dev, name);
+ dev_set_name(&control_type->dev, "%s", name);
result = device_register(&control_type->dev);
if (result) {
if (control_type->allocated)