Skip to content

Commit 2cf321e

Browse files
committed
ACPI: scan: Do not bind ACPI drivers to fixed event buttons
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> Link: https://patch.msgid.link/2213073.OBFZWjSADL@rafael.j.wysocki
1 parent f4203ec commit 2cf321e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

drivers/acpi/scan.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,15 +2764,8 @@ static void acpi_bus_add_fixed_device_object(enum acpi_bus_device_type type)
27642764
struct acpi_device *adev = NULL;
27652765

27662766
acpi_add_single_object(&adev, NULL, type, false);
2767-
if (adev) {
2768-
adev->flags.match_driver = true;
2769-
if (device_attach(&adev->dev) >= 0)
2770-
device_init_wakeup(&adev->dev, true);
2771-
else
2772-
dev_dbg(&adev->dev, "No driver\n");
2773-
2767+
if (adev)
27742768
acpi_default_enumeration(adev);
2775-
}
27762769
}
27772770

27782771
static void acpi_bus_scan_fixed(void)

0 commit comments

Comments
 (0)