forked from luck/tmp_suning_uos_patched
remoteproc: make device_type const
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
c4d77d5fcd
commit
c42ca04da5
|
@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
|
|||
kfree(rproc);
|
||||
}
|
||||
|
||||
static struct device_type rproc_type = {
|
||||
static const struct device_type rproc_type = {
|
||||
.name = "remoteproc",
|
||||
.release = rproc_type_release,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user