[PATCH] update sysfs kset initialisation in PPC64 DLPAR IO driver
Andy Whitcroft
apw at shadowen.org
Fri May 11 00:00:50 EST 2007
Move the rpadlpar device from "struct subsystem" to "struct kset"
following the changes in sysfs.
Signed-off-by: Andy Whitcroft <apw at shadowen.org>
---
Ok, this patch seems to sort out the compile problem
here and indeed boots and runs kernbench. Perhaps
you could confirm this is sufficient.
diff --git a/drivers/pci/hotplug/rpadlpar_sysfs.c b/drivers/pci/hotplug/rpadlpar_sysfs.c
index 6c5be3f..ed4de59 100644
--- a/drivers/pci/hotplug/rpadlpar_sysfs.c
+++ b/drivers/pci/hotplug/rpadlpar_sysfs.c
@@ -129,13 +129,13 @@ struct kobj_type ktype_dlpar_io = {
};
struct kset dlpar_io_kset = {
- .subsys = &pci_hotplug_slots_subsys,
.kobj = {.name = DLPAR_KOBJ_NAME, .ktype=&ktype_dlpar_io,},
.ktype = &ktype_dlpar_io,
};
int dlpar_sysfs_init(void)
{
+ kobj_set_kset_s(&dlpar_io_kset, pci_hotplug_slots_subsys);
if (kset_register(&dlpar_io_kset)) {
printk(KERN_ERR "rpadlpar_io: cannot register kset for %s\n",
dlpar_io_kset.kobj.name);
More information about the Linuxppc-dev
mailing list