1
0
Fork 0

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>
zero-colors
Bhumika Goyal 2017-08-19 13:52:22 +05:30 committed by Bjorn Andersson
parent c4d77d5fcd
commit c42ca04da5
1 changed files with 1 additions and 1 deletions

View File

@ -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,
};