Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298030
b: refs/heads/master
c: 89e96ad
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Len Brown committed Mar 30, 2012
1 parent c0f5e1c commit 8f02c43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac909ec308ce8d5177963c780564824d12bc3fa2
refs/heads/master: 89e96ada572fb216e582dbe3f64e1a6939a37f74
7 changes: 6 additions & 1 deletion trunk/drivers/pnp/pnpacpi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,14 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp)
{
struct acpi_device *acpi = to_acpi_device(dev);
struct pnp_dev *pnp = _pnp;
struct device *physical_device;

physical_device = acpi_get_physical_device(acpi->handle);
if (physical_device)
put_device(physical_device);

/* true means it matched */
return !acpi_get_physical_device(acpi->handle)
return !physical_device
&& compare_pnp_id(pnp->id, acpi_device_hid(acpi));
}

Expand Down

0 comments on commit 8f02c43

Please sign in to comment.