summaryrefslogtreecommitdiff
path: root/src/drivers/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/generic')
-rw-r--r--src/drivers/generic/gfx/gfx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/generic/gfx/gfx.c b/src/drivers/generic/gfx/gfx.c
index b2bda4a43c..0386e9b2ef 100644
--- a/src/drivers/generic/gfx/gfx.c
+++ b/src/drivers/generic/gfx/gfx.c
@@ -69,6 +69,9 @@ static void gfx_fill_ssdt_generator(struct device *dev)
const char *scope = acpi_device_scope(dev);
+ if (!scope)
+ return;
+
acpigen_write_scope(scope);
/* Method (_DOD, 0) */