public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PNPACPI : don't use device not present
@ 2005-02-04 17:28 matthieu castet
  0 siblings, 0 replies; only message in thread
From: matthieu castet @ 2005-02-04 17:28 UTC (permalink / raw)
  To: Linux Kernel list, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Len Brown

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

Hi,
this patch avoid the pnpacpi layer reconized not present device.

There is still issue [1] with the ACPI code that need to fix in order 
everything work correctly...

Matthieu CASTET


[1] http://bugzilla.kernel.org/show_bug.cgi?id=3358

[-- Attachment #2: pnpacpi_spec.patch --]
[-- Type: text/x-patch, Size: 422 bytes --]

--- linux-2.6.9/drivers/pnp/pnpacpi/core.c	2004-11-22 20:35:58.000000000 +0100
+++ linux-2.6.9/drivers/pnp/pnpacpi/core.c	2004-11-26 14:46:54.000000000 +0100
@@ -124,6 +124,10 @@
 	struct pnp_dev *dev;
 
 	pnp_dbg("ACPI device : hid %s", acpi_device_hid(device));
+
+	if(!device->status.present)
+		return -ENODEV;
+
 	dev =  pnpacpi_kmalloc(sizeof(struct pnp_dev), GFP_KERNEL);
 	if (!dev) {
 		pnp_err("Out of memory");

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

only message in thread, other threads:[~2005-02-04 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 17:28 [PATCH] PNPACPI : don't use device not present matthieu castet

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