X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=drivers%2Fof%2Fdevice.c;h=955bfb3d1a834e12a935b98406f9d551b3404b5b;hb=a93e884edf61f9debc9ca61ef9e545f0394ab666;hp=8271793ef379085b0dae5c87a6bbbf6d766b1ac1;hpb=693fed981eb9bf6e70bfda66bb872e2bb8155671;p=linux-block.git diff --git a/drivers/of/device.c b/drivers/of/device.c index 8271793ef379..955bfb3d1a83 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -248,7 +248,7 @@ const void *of_device_get_match_data(const struct device *dev) } EXPORT_SYMBOL(of_device_get_match_data); -static ssize_t of_device_get_modalias(struct device *dev, char *str, ssize_t len) +static ssize_t of_device_get_modalias(const struct device *dev, char *str, ssize_t len) { const char *compat; char *c; @@ -372,7 +372,7 @@ void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) mutex_unlock(&of_mutex); } -int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) +int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) { int sl;