Commit 64e928e3 authored by Patrick Mochel's avatar Patrick Mochel

edd: fix up for changes in kobject infrastructure.

parent 85e865ec
...@@ -597,12 +597,14 @@ static struct edd_attribute * edd_attrs[] = { ...@@ -597,12 +597,14 @@ static struct edd_attribute * edd_attrs[] = {
NULL, NULL,
}; };
static struct subsystem edd_subsys = { static struct kobj_type ktype_edd = {
.kobj = { .name = "edd" },
.sysfs_ops = &edd_attr_ops, .sysfs_ops = &edd_attr_ops,
.default_attrs = def_attrs, .default_attrs = def_attrs,
}; };
static decl_subsys(edd,&ktype_edd);
/** /**
* edd_dev_is_type() - is this EDD device a 'type' device? * edd_dev_is_type() - is this EDD device a 'type' device?
...@@ -793,7 +795,7 @@ edd_device_register(struct edd_device *edev, int i) ...@@ -793,7 +795,7 @@ edd_device_register(struct edd_device *edev, int i)
edd_dev_set_info(edev, &edd[i]); edd_dev_set_info(edev, &edd[i]);
snprintf(edev->kobj.name, EDD_DEVICE_NAME_SIZE, "int13_dev%02x", snprintf(edev->kobj.name, EDD_DEVICE_NAME_SIZE, "int13_dev%02x",
edd[i].device); edd[i].device);
edev->kobj.subsys = &edd_subsys; kobj_set_kset_s(edev,edd_subsys);
error = kobject_register(&edev->kobj); error = kobject_register(&edev->kobj);
if (!error) if (!error)
populate_dir(edev); populate_dir(edev);
......
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