summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-12-15 17:00:01 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-12-26 17:08:57 +0300
commit2cf321ef4e8225108b5680dcdfc9429ed965aa30 (patch)
treefd382c207d2c74b13044120499c49362e1ffc310
parentf4203ec64e1155c07c5d95bddc62201af8598c67 (diff)
downloadlinux-2cf321ef4e8225108b5680dcdfc9429ed965aa30.tar.xz
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
-rw-r--r--drivers/acpi/scan.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 0ae36ab7b6ee..1bc470019298 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -2764,15 +2764,8 @@ static void acpi_bus_add_fixed_device_object(enum acpi_bus_device_type type)
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)