diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-15 13:00:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-15 17:25:19 +0200 |
commit | c55c5ddedba0c393683910eeeb760903d0d1f827 (patch) | |
tree | 75219444145cb17317c6da6195ee5a05dbc38523 /arch/sparc/kernel/time_32.c | |
parent | Merge branch 'sparc64-early-boot-timestamp-fixes' (diff) | |
download | linux-c55c5ddedba0c393683910eeeb760903d0d1f827.tar.xz linux-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/time_32.c')
-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", }, |