aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-15 16:30:20 +0530
committerDavid S. Miller <davem@davemloft.net>2017-06-15 08:25:19 -0700
commitc55c5ddedba0c393683910eeeb760903d0d1f827 (patch)
tree75219444145cb17317c6da6195ee5a05dbc38523 /arch/sparc/kernel
parentMerge branch 'sparc64-early-boot-timestamp-fixes' (diff)
downloadlinux-dev-c55c5ddedba0c393683910eeeb760903d0d1f827.tar.xz
linux-dev-c55c5ddedba0c393683910eeeb760903d0d1f827.zip
sparc/time: make of_device_ids const
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by <linux/of.h> work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/time_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c
index 9f575dfc2e41..2ce2e7b2abbb 100644
--- a/arch/sparc/kernel/time_32.c
+++ b/arch/sparc/kernel/time_32.c
@@ -298,7 +298,7 @@ static int clock_probe(struct platform_device *op)
return 0;
}
-static struct of_device_id clock_match[] = {
+static const struct of_device_id clock_match[] = {
{
.name = "eeprom",
},