提交 a1148fb0 编写于 作者: G Greg Kroah-Hartman

Driver core: rename ktype_driver

This makes it a bit more sane when trying to figure out how to clean up
the ktype mess.

Based on a larger patch from Kay Sievers

Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 8f4afc41
...@@ -89,7 +89,7 @@ static void driver_release(struct kobject * kobj) ...@@ -89,7 +89,7 @@ static void driver_release(struct kobject * kobj)
*/ */
} }
static struct kobj_type ktype_driver = { static struct kobj_type driver_ktype = {
.sysfs_ops = &driver_sysfs_ops, .sysfs_ops = &driver_sysfs_ops,
.release = driver_release, .release = driver_release,
}; };
...@@ -868,7 +868,7 @@ int bus_register(struct bus_type * bus) ...@@ -868,7 +868,7 @@ int bus_register(struct bus_type * bus)
kobject_set_name(&bus->drivers.kobj, "drivers"); kobject_set_name(&bus->drivers.kobj, "drivers");
bus->drivers.kobj.parent = &bus->subsys.kobj; bus->drivers.kobj.parent = &bus->subsys.kobj;
bus->drivers.ktype = &ktype_driver; bus->drivers.ktype = &driver_ktype;
retval = kset_register(&bus->drivers); retval = kset_register(&bus->drivers);
if (retval) if (retval)
goto bus_drivers_fail; goto bus_drivers_fail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册