summaryrefslogtreecommitdiffstats
path: root/include/acpi/video.h
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2009-03-19 21:35:39 +0000
committerLen Brown <len.brown@intel.com>2009-03-27 22:11:03 -0400
commit74a365b3f354fafc537efa5867deb7a9fadbfe27 (patch)
tree66ebff203807d2ed77e77e1ccc2f71f63e571098 /include/acpi/video.h
parentc60d638e29c780b75b648283a197d0226e3576c3 (diff)
downloadlinux-74a365b3f354fafc537efa5867deb7a9fadbfe27.tar.gz
linux-74a365b3f354fafc537efa5867deb7a9fadbfe27.tar.bz2
linux-74a365b3f354fafc537efa5867deb7a9fadbfe27.zip
ACPI: Populate DIDL before registering ACPI video device on Intel
Intel graphics hardware that implements the ACPI IGD OpRegion spec requires that the list of display devices be populated before any ACPI video methods are called. Detect when this is the case and defer registration until the opregion code calls it. Fixes crashes on HP laptops. http://bugzilla.kernel.org/show_bug.cgi?id=11259 Signed-off-by: Matthew Garrett <mjg@redhat.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/video.h')
-rw-r--r--include/acpi/video.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/video.h b/include/acpi/video.h
new file mode 100644
index 000000000000..f0275bb79ce4
--- /dev/null
+++ b/include/acpi/video.h
@@ -0,0 +1,11 @@
+#ifndef __ACPI_VIDEO_H
+#define __ACPI_VIDEO_H
+
+#if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
+extern int acpi_video_register(void);
+#else
+static inline int acpi_video_register(void) { return 0; }
+#endif
+
+#endif
+