diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-15 16:30:20 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-15 08:25:19 -0700 |
commit | c55c5ddedba0c393683910eeeb760903d0d1f827 (patch) | |
tree | 75219444145cb17317c6da6195ee5a05dbc38523 /arch/sparc/kernel | |
parent | 4432711a48f1dca6c82c4d2742b5033abddf177a (diff) |
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.c | 2 |
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", }, |