Here's a small patch that fixes the logic of the kobject creation and
registration in the acpi code (since we use kobject_init(), we need to
use kobject_add(), not kobject_register() to add the kobject to the
The patch is against 2.5.68.
# acpi: change kobject_register to kobject_add to fix logic error.
diff -Nru a/drivers/acpi/scan.c b/drivers/acpi/scan.c
--- a/drivers/acpi/scan.c Mon Apr 28 13:36:15 2003
+++ b/drivers/acpi/scan.c Mon Apr 28 13:36:15 2003
@@ -69,7 +69,7 @@
device->kobj.parent = &parent->kobj;
device->kobj.ktype = &ktype_acpi_ns;
device->kobj.kset = &acpi_namespace_kset;
Get latest updates about Open Source Projects, Conferences and News.