remoteproc: make device_type const
authorBhumika Goyal <[email protected]>
Sat, 19 Aug 2017 08:22:22 +0000 (13:52 +0530)
committerBjorn Andersson <[email protected]>
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 <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
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,
 };