Skip to content

Commit

Permalink
Driver core: rename ktype_driver
Browse files Browse the repository at this point in the history
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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 12, 2007
1 parent 8f4afc4 commit a1148fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
.release = driver_release,
};
Expand Down Expand Up @@ -868,7 +868,7 @@ int bus_register(struct bus_type * bus)

kobject_set_name(&bus->drivers.kobj, "drivers");
bus->drivers.kobj.parent = &bus->subsys.kobj;
bus->drivers.ktype = &ktype_driver;
bus->drivers.ktype = &driver_ktype;
retval = kset_register(&bus->drivers);
if (retval)
goto bus_drivers_fail;
Expand Down

0 comments on commit a1148fb

Please sign in to comment.