Skip to contentSkip to conversation

kobject fix for acpi startup

PATCH New Greg KH 1 participant 1 message Apr 28, 2003 ACPI

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 1/1 kobject fix for acpi startup

Hi,

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 kernel systems).

The patch is against 2.5.68.

thanks,

greg k-h

# acpi: change kobject_register to kobject_add to fix logic error.

drivers/acpi/scan.c +1 -1
diff -Nru a/drivers/acpi/scan.c b/drivers/acpi/scan.c
@@ -69,7 +69,7 @@
 		device->kobj.parent = &parent->kobj;
 	device->kobj.ktype = &ktype_acpi_ns;
 	device->kobj.kset = &acpi_namespace_kset;
-	kobject_register(&device->kobj);
+	kobject_add(&device->kobj);
 }
 
 static int

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf