diff options
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index b81448b2c75d..a5c6cb773e5f 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c | |||
@@ -319,8 +319,7 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp) | |||
319 | struct pnp_dev *pnp = _pnp; | 319 | struct pnp_dev *pnp = _pnp; |
320 | 320 | ||
321 | /* true means it matched */ | 321 | /* true means it matched */ |
322 | return !acpi->physical_node_count | 322 | return pnp->data == acpi; |
323 | && compare_pnp_id(pnp->id, acpi_device_hid(acpi)); | ||
324 | } | 323 | } |
325 | 324 | ||
326 | static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev) | 325 | static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev) |