From: Arvind Yadav Date: Thu, 15 Jun 2017 11:00:20 +0000 (+0530) Subject: sparc/time: make of_device_ids const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c55c5ddedba0c393683910eeeb760903d0d1f827;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: David S. Miller --- 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", },