ACPI / scan: Allow ACPI drivers to bind to PNP device objects
[deliverable/linux.git] / drivers / acpi / scan.c
index 0a817ad24f16f75853d34e11deb1a226ef3d9ed0..fd17fe7f93f27162f6fedaabadf30b1eda66b788 100644 (file)
@@ -975,7 +975,7 @@ static int acpi_device_probe(struct device *dev)
        struct acpi_driver *acpi_drv = to_acpi_driver(dev->driver);
        int ret;
 
-       if (acpi_dev->handler)
+       if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev))
                return -EINVAL;
 
        if (!acpi_drv->ops.add)
This page took 0.042251 seconds and 5 git commands to generate.