diff options
-rw-r--r-- | src/device/device_util.c | 2 | ||||
-rw-r--r-- | src/include/device/device.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c index ec2d1591ab..8d111b6096 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -655,7 +655,7 @@ void disable_children(struct bus *bus) * Returns true if the device is an enabled bridge that has at least * one enabled device on its secondary bus that is not of type NONE. */ -bool dev_is_active_bridge(struct device *dev) +bool dev_is_active_bridge(const struct device *dev) { struct device *child; diff --git a/src/include/device/device.h b/src/include/device/device.h index 053138db99..901f717624 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -186,7 +186,7 @@ const struct device *dev_get_domain(const struct device *dev); unsigned int dev_get_domain_id(const struct device *dev); void dev_set_enabled(struct device *dev, int enable); void disable_children(struct bus *bus); -bool dev_is_active_bridge(struct device *dev); +bool dev_is_active_bridge(const struct device *dev); bool is_dev_enabled(const struct device *const dev); bool is_devfn_enabled(unsigned int devfn); bool is_cpu(const struct device *cpu); |