summaryrefslogtreecommitdiff
path: root/src/device/device_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/device_util.c')
-rw-r--r--src/device/device_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 02641c162e..10e4a0dd1c 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -248,7 +248,7 @@ const char *dev_name(const struct device *dev)
}
/* Returns the PCI domain for the given PCI device */
-struct device *dev_get_pci_domain(struct device *dev)
+const struct device *dev_get_pci_domain(const struct device *dev)
{
/* Walk up the tree up to the PCI domain */
while (dev && dev->upstream && !is_root_device(dev)) {