From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: [PATCH] kobject fix for acpi startup Date: Mon, 28 Apr 2003 13:44:50 -0700 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20030428204450.GC26019@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: "Grover, Andrew" Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org 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