From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Both ACPI button drivers have been converted to platform ones, so there
is no reason to attempt to bind an ACPI driver to a struct acpi_device
representing a fixed event device button.
Update the relevant code accordingly.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
v1 -> v2: No changes
---
drivers/acpi/scan.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -2759,15 +2759,8 @@ static void acpi_bus_add_fixed_device_ob
struct acpi_device *adev = NULL;
acpi_add_single_object(&adev, NULL, type, false);
- if (adev) {
- adev->flags.match_driver = true;
- if (device_attach(&adev->dev) >= 0)
- device_init_wakeup(&adev->dev, true);
- else
- dev_dbg(&adev->dev, "No driver\n");
-
+ if (adev)
acpi_default_enumeration(adev);
- }
}
static void acpi_bus_scan_fixed(void)