]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / video: Move dmi_check_system from module_init to acpi_video_register
authorHans de Goede <hdegoede@redhat.com>
Tue, 16 Jun 2015 14:27:53 +0000 (16:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Jun 2015 23:11:09 +0000 (01:11 +0200)
commit6fa86821b2d39184010a430d487d029ae608146e
tree25f56833af6a9ce6033f810ae648d4e81a2f6f82
parent77289e3f0b984aa0c5ef7b0944996b3e90904257
ACPI / video: Move dmi_check_system from module_init to acpi_video_register

When builtin there is no guarantee in which order module_init functions
are run, so acpi_video_register() may get called from the i915 driver
(if it is also builtin) before acpi_video_init() gets called, resulting
in the dmi quirks not yet being parsed.

This commit moves the dmi_check_system() call to acpi_video_register(),
so that we can be sure the dmi quirks have always been applied before
probing.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c