summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
index a93826551d..b5be31d038 100644
--- a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
+++ b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
@@ -21,6 +21,11 @@ static void i2s_machine_dev_fill_ssdt(const struct device *dev)
dmic_select_gpio = &cfg->dmic_select_gpio;
+ if (scope == NULL) {
+ printk(BIOS_ERR, "%s: ERROR: ACPI I2S scope not found\n", dev_path(dev));
+ return;
+ }
+
if (cfg->hid == NULL) {
printk(BIOS_ERR, "%s: ERROR: HID required\n", dev_path(dev));
return;