aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/sys.c')
-rw-r--r--drivers/base/sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/sys.c b/drivers/base/sys.c
index 162355cd745a..79a9ae5238ac 100644
--- a/drivers/base/sys.c
+++ b/drivers/base/sys.c
@@ -141,7 +141,7 @@ int sysdev_class_register(struct sysdev_class *cls)
141 cls->kset.kobj.ktype = &ktype_sysdev_class; 141 cls->kset.kobj.ktype = &ktype_sysdev_class;
142 cls->kset.kobj.kset = system_kset; 142 cls->kset.kobj.kset = system_kset;
143 143
144 retval = kobject_set_name(&cls->kset.kobj, cls->name); 144 retval = kobject_set_name(&cls->kset.kobj, "%s", cls->name);
145 if (retval) 145 if (retval)
146 return retval; 146 return retval;
147 147