remoteproc: make device_type const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:22 +0000 (13:52 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Aug 2017 17:25:50 +0000 (10:25 -0700)
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>
drivers/remoteproc/remoteproc_core.c

index 364ef28bac849b3f71ac7eb34984752c0419eeec..48b2c5ddfb4d9004bce92048d5dad41efbb9823e 100644 (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,
 };