Skip to content

Commit

Permalink
Driver core: rename ktype_edd and ktype_efivar
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 a1148fb commit e89a411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/firmware/edd.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,13 +625,13 @@ static void edd_release(struct kobject * kobj)
kfree(dev);
}

static struct kobj_type ktype_edd = {
static struct kobj_type edd_ktype = {
.release = edd_release,
.sysfs_ops = &edd_attr_ops,
.default_attrs = def_attrs,
};

static decl_subsys(edd,&ktype_edd,NULL);
static decl_subsys(edd, &edd_ktype, NULL);


/**
Expand Down
4 changes: 2 additions & 2 deletions drivers/firmware/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static struct attribute *def_attrs[] = {
NULL,
};

static struct kobj_type ktype_efivar = {
static struct kobj_type efivar_ktype = {
.release = efivar_release,
.sysfs_ops = &efivar_attr_ops,
.default_attrs = def_attrs,
Expand Down Expand Up @@ -583,7 +583,7 @@ static struct subsys_attribute *efi_subsys_attrs[] = {
NULL, /* maybe more in the future? */
};

static decl_subsys(vars, &ktype_efivar, NULL);
static decl_subsys(vars, &efivar_ktype, NULL);
static decl_subsys(efi, NULL, NULL);

/*
Expand Down

0 comments on commit e89a411

Please sign in to comment.