diff options
Diffstat (limited to 'drivers/pnp/pnpacpi/core.c')
-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 3a4478f1fc72..83b8b5ac49c9 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c | |||
@@ -230,8 +230,7 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp) | |||
230 | struct pnp_dev *pnp = _pnp; | 230 | struct pnp_dev *pnp = _pnp; |
231 | 231 | ||
232 | /* true means it matched */ | 232 | /* true means it matched */ |
233 | return acpi->flags.hardware_id | 233 | return !acpi_get_physical_device(acpi->handle) |
234 | && !acpi_get_physical_device(acpi->handle) | ||
235 | && compare_pnp_id(pnp->id, acpi_device_hid(acpi)); | 234 | && compare_pnp_id(pnp->id, acpi_device_hid(acpi)); |
236 | } | 235 | } |
237 | 236 | ||