diff options
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c index 3f503b54f8..38303126bc 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -331,7 +331,7 @@ void compact_resources(struct device *dev) * @param index The index of the resource on the device. * @return The resource, if it already exists. */ -struct resource *probe_resource(struct device *dev, unsigned index) +struct resource *probe_resource(const struct device *dev, unsigned index) { struct resource *res; @@ -401,7 +401,7 @@ struct resource *new_resource(struct device *dev, unsigned index) * @param index The index of the resource on the device. * return TODO. */ -struct resource *find_resource(struct device *dev, unsigned index) +struct resource *find_resource(const struct device *dev, unsigned index) { struct resource *resource; |