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)
commit7ee33baabcae765e1eda73b988a62fe102c0ce76
tree25f56833af6a9ce6033f810ae648d4e81a2f6f82
parent93a291dfaf9c328ca5a9cea1733af1a128efe890
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