diff options
author | matthieu castet <castet.matthieu@free.fr> | 2006-01-06 01:31:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 05:15:56 -0500 |
commit | 07b0120d53a3e7cbc88458a64a4d668fc416100f (patch) | |
tree | 41e86cac02719812b1f1bd16674e201cd3142210 /drivers/pnp | |
parent | 6f957eaf79356a32e838f5f262ee9a60544b1d5b (diff) | |
download | linux-stable-07b0120d53a3e7cbc88458a64a4d668fc416100f.tar.gz linux-stable-07b0120d53a3e7cbc88458a64a4d668fc416100f.tar.bz2 linux-stable-07b0120d53a3e7cbc88458a64a4d668fc416100f.zip |
[PNPACPI] Ignore devices that have no resources
Ignore devices that don't have a _CRS method.
They are useless for the PNP layer as they don't provide any resources.
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index 816479ad217b..e77d1feb759e 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c @@ -131,7 +131,8 @@ static int __init pnpacpi_add_device(struct acpi_device *device) struct pnp_id *dev_id; struct pnp_dev *dev; - if (!ispnpidacpi(acpi_device_hid(device)) || + status = acpi_get_handle(device->handle, "_CRS", &temp); + if (ACPI_FAILURE(status) || !ispnpidacpi(acpi_device_hid(device)) || is_exclusive_device(device)) return 0; |