aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/base/bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 6768a01e210b..9a19b071c573 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -89,7 +89,7 @@ static void driver_release(struct kobject * kobj)
89 */ 89 */
90} 90}
91 91
92static struct kobj_type ktype_driver = { 92static struct kobj_type driver_ktype = {
93 .sysfs_ops = &driver_sysfs_ops, 93 .sysfs_ops = &driver_sysfs_ops,
94 .release = driver_release, 94 .release = driver_release,
95}; 95};
@@ -868,7 +868,7 @@ int bus_register(struct bus_type * bus)
868 868
869 kobject_set_name(&bus->drivers.kobj, "drivers"); 869 kobject_set_name(&bus->drivers.kobj, "drivers");
870 bus->drivers.kobj.parent = &bus->subsys.kobj; 870 bus->drivers.kobj.parent = &bus->subsys.kobj;
871 bus->drivers.ktype = &ktype_driver; 871 bus->drivers.ktype = &driver_ktype;
872 retval = kset_register(&bus->drivers); 872 retval = kset_register(&bus->drivers);
873 if (retval) 873 if (retval)
874 goto bus_drivers_fail; 874 goto bus_drivers_fail;