Commit 88346167 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI / scan: Set flags.match_driver in acpi_bus_scan_fixed()

Before commit 6931007c (ACPI / scan: Start matching drivers
after trying scan handlers) the match_driver flag for all devices
was set in acpi_add_single_object(), but now it is set by
acpi_bus_device_attach() which is not called for the "fixed"
devices added by acpi_bus_scan_fixed().  This means that
flags.match_driver is never set for those devices now, so make
acpi_bus_scan_fixed() set it before calling device_attach().

Fixes: 6931007c (ACPI / scan: Start matching drivers after trying scan handlers)
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent f516bde5
...@@ -1990,6 +1990,7 @@ static int acpi_bus_scan_fixed(void) ...@@ -1990,6 +1990,7 @@ static int acpi_bus_scan_fixed(void)
if (result) if (result)
return result; return result;
device->flags.match_driver = true;
result = device_attach(&device->dev); result = device_attach(&device->dev);
if (result < 0) if (result < 0)
return result; return result;
...@@ -2006,6 +2007,7 @@ static int acpi_bus_scan_fixed(void) ...@@ -2006,6 +2007,7 @@ static int acpi_bus_scan_fixed(void)
if (result) if (result)
return result; return result;
device->flags.match_driver = true;
result = device_attach(&device->dev); result = device_attach(&device->dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment