Skip to content

Commit

Permalink
[PNPACPI] Ignore devices that have no resources
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matthieu castet authored and Len Brown committed Jan 7, 2006
1 parent 6f957ea commit 07b0120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pnp/pnpacpi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 07b0120

Please sign in to comment.