public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI:video: skip evaluating _DOD when it does not exist
@ 2016-05-27  7:47 Alex Hung
  2016-06-03  6:04 ` Aaron Lu
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Hung @ 2016-05-27  7:47 UTC (permalink / raw)
  To: rui.zhang, rjw, lenb, linux-acpi, alex.hung

Some system supports hybrid graphics and its discrete VGA
does not have any connectors and therefore has no _DOD method.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 drivers/acpi/acpi_video.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
index 5fdac39..549cdbe 100644
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -1211,6 +1211,9 @@ static int acpi_video_device_enumerate(struct acpi_video_bus *video)
 	union acpi_object *dod = NULL;
 	union acpi_object *obj;
 
+	if (!video->cap._DOD)
+		return AE_NOT_EXIST;
+
 	status = acpi_evaluate_object(video->device->handle, "_DOD", NULL, &buffer);
 	if (!ACPI_SUCCESS(status)) {
 		ACPI_EXCEPTION((AE_INFO, status, "Evaluating _DOD"));
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-23  0:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-27  7:47 [PATCH] ACPI:video: skip evaluating _DOD when it does not exist Alex Hung
2016-06-03  6:04 ` Aaron Lu
2016-06-06  1:36   ` Alex Hung
2016-06-06  1:52     ` Aaron Lu
2016-06-23  0:32       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox