提交 a4aaf2e0 编写于 作者: R Rafael J. Wysocki

Merge branch 'powercap'

* powercap:
  PowerCap: Fix build error with option -Werror=format-security
...@@ -625,7 +625,7 @@ struct powercap_control_type *powercap_register_control_type( ...@@ -625,7 +625,7 @@ struct powercap_control_type *powercap_register_control_type(
control_type->ops = ops; control_type->ops = ops;
INIT_LIST_HEAD(&control_type->node); INIT_LIST_HEAD(&control_type->node);
control_type->dev.class = &powercap_class; 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); result = device_register(&control_type->dev);
if (result) { if (result) {
if (control_type->allocated) if (control_type->allocated)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册