summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 10e4a0dd1c..5e353c2734 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -247,10 +247,10 @@ const char *dev_name(const struct device *dev)
return "unknown";
}
-/* Returns the PCI domain for the given PCI device */
-const struct device *dev_get_pci_domain(const struct device *dev)
+/* Returns the domain for the given device */
+const struct device *dev_get_domain(const struct device *dev)
{
- /* Walk up the tree up to the PCI domain */
+ /* Walk up the tree up to the domain */
while (dev && dev->upstream && !is_root_device(dev)) {
dev = dev->upstream->dev;
if (dev->path.type == DEVICE_PATH_DOMAIN)