summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 10:22:22 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2017-08-24 19:25:50 +0200
commitc42ca04da57aad91689e681a124a174249bc1a70 (patch)
treeefa86cd0d5634f19e5196d6670df62818b0a8386 /drivers/remoteproc
parentsoc: qcom: GLINK SSR notifier (diff)
downloadlinux-c42ca04da57aad91689e681a124a174249bc1a70.tar.xz
linux-c42ca04da57aad91689e681a124a174249bc1a70.zip
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>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 364ef28bac84..48b2c5ddfb4d 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -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,
};