diff options
-rw-r--r-- | drivers/acpi/scan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 44225cb15f3a..90c5759e1355 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -740,6 +740,10 @@ static int acpi_bus_match(struct device *dev, struct device_driver *drv) | |||
740 | struct acpi_device *acpi_dev = to_acpi_device(dev); | 740 | struct acpi_device *acpi_dev = to_acpi_device(dev); |
741 | struct acpi_driver *acpi_drv = to_acpi_driver(drv); | 741 | struct acpi_driver *acpi_drv = to_acpi_driver(drv); |
742 | 742 | ||
743 | /* Skip ACPI device objects with scan handlers attached. */ | ||
744 | if (acpi_dev->handler) | ||
745 | return 0; | ||
746 | |||
743 | return acpi_dev->flags.match_driver | 747 | return acpi_dev->flags.match_driver |
744 | && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); | 748 | && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); |
745 | } | 749 | } |