public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kobject fix for acpi startup
@ 2003-04-28 20:44 Greg KH
  0 siblings, 0 replies; only message in thread
From: Greg KH @ 2003-04-28 20:44 UTC (permalink / raw)
  To: Grover, Andrew; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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.

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;
-	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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-28 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 20:44 [PATCH] kobject fix for acpi startup Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox