kobject fix for acpi startup
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
@@ -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