ACPI / video: Load the module even if ACPI is disabled
[deliverable/linux.git] / drivers / acpi / video.c
index debd30917010a17697102bc84d1e468c69c94d17..5f98ac69729a85e16bf25890c502e780596ca665 100644 (file)
@@ -2176,6 +2176,17 @@ EXPORT_SYMBOL(acpi_video_unregister_backlight);
 
 static int __init acpi_video_init(void)
 {
+       /*
+        * Let the module load even if ACPI is disabled (e.g. due to
+        * a broken BIOS) so that i915.ko can still be loaded on such
+        * old systems without an AcpiOpRegion.
+        *
+        * acpi_video_register() will report -ENODEV later as well due
+        * to acpi_disabled when i915.ko tries to register itself afterwards.
+        */
+       if (acpi_disabled)
+               return 0;
+
        dmi_check_system(video_dmi_table);
 
        if (intel_opregion_present())
This page took 0.025153 seconds and 5 git commands to generate.