Commit cc7218d8 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] driver core: remove unneeded line in class code.

Thanks to Jonathan Corbet for pointing this out.
parent 9231a222
...@@ -259,7 +259,6 @@ int class_device_add(struct class_device *class_dev) ...@@ -259,7 +259,6 @@ int class_device_add(struct class_device *class_dev)
/* first, register with generic layer. */ /* first, register with generic layer. */
strncpy(class_dev->kobj.name, class_dev->class_id, KOBJ_NAME_LEN); strncpy(class_dev->kobj.name, class_dev->class_id, KOBJ_NAME_LEN);
kobj_set_kset_s(class_dev, class_subsys);
kobj_set_kset_s(class_dev, class_obj_subsys); kobj_set_kset_s(class_dev, class_obj_subsys);
if (parent) if (parent)
class_dev->kobj.parent = &parent->subsys.kset.kobj; class_dev->kobj.parent = &parent->subsys.kset.kobj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment