]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Set flags.match_driver in acpi_bus_scan_fixed()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Nov 2013 13:18:47 +0000 (14:18 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 Nov 2013 00:04:25 +0000 (01:04 +0100)
commit572f7b003abe45b4b36b979f4934041c012d5e54
tree25c42afc4b78c6cb6d1914d7d2afeb4501378b20
parent4fe680ff360fecc491cf7f80dc86af4122dddc73
ACPI / scan: Set flags.match_driver in acpi_bus_scan_fixed()

Before commit 97dfc5fcfb00 (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: 97dfc5fcfb00 (ACPI / scan: Start matching drivers after trying scan handlers)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c