summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/root_device.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/device/root_device.c b/src/device/root_device.c
index 7ff10ae844..ed1f7d7bfc 100644
--- a/src/device/root_device.c
+++ b/src/device/root_device.c
@@ -130,6 +130,13 @@ static void root_dev_reset(struct bus *bus)
hard_reset();
}
+#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
+static const char *root_dev_acpi_name(struct device *dev)
+{
+ return "\\_SB";
+}
+#endif
+
/**
* Default device operation for root device.
*
@@ -144,4 +151,7 @@ struct device_operations default_dev_ops_root = {
.init = DEVICE_NOOP,
.scan_bus = root_dev_scan_bus,
.reset_bus = root_dev_reset,
+#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
+ .acpi_name = root_dev_acpi_name,
+#endif
};