diff mbox

[5/7] ACPI video: check cap._DDC flag before getting EDID

Message ID 1291619064.19296.579.camel@rui (mailing list archive)
State New, archived
Headers show

Commit Message

Zhang Rui Dec. 6, 2010, 7:04 a.m. UTC
None
diff mbox

Patch

Index: linux-2.6/drivers/acpi/video.c
===================================================================
--- linux-2.6.orig/drivers/acpi/video.c
+++ linux-2.6/drivers/acpi/video.c
@@ -1275,6 +1275,9 @@  int acpi_video_get_edid(struct acpi_devi
 		if (!video_device)
 			continue;
 
+		if (!video_device->cap._DDC)
+			continue;
+
 		if (type) {
 			switch (type) {
 			case ACPI_VIDEO_DISPLAY_CRT: