]> err.no Git - linux-2.6/blobdiff - drivers/pnp/pnpacpi/core.c
[PNPACPI] Ignore devices that have no resources
[linux-2.6] / drivers / pnp / pnpacpi / core.c
index 816479ad217b044dd3c9eb5cd27d3b6683616e6a..e77d1feb759efbf95d57aa3b809c84b9da605f97 100644 (file)
@@ -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;