summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-29 20:17:11 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-09-25 09:36:15 +0200
commit10430364ebb562311ba6a6efa74e0c2298007912 (patch)
tree69e410c436482b5624bc6e33ed3e03d3897e63f5 /drivers/clocksource
parentLinux 4.14-rc2 (diff)
downloadlinux-10430364ebb562311ba6a6efa74e0c2298007912.tar.xz
linux-10430364ebb562311ba6a6efa74e0c2298007912.zip
x86/numachip: Add const and __initconst to numachip2_clockevent
Make this const as it is only used during a copy operation and add __initconst as this usage is during the initialization phase. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: julia.lawall@lip6.fr Cc: daniel.lezcano@linaro.org Link: http://lkml.kernel.org/r/1504030631-10812-1-git-send-email-bhumirks@gmail.com
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/numachip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/numachip.c b/drivers/clocksource/numachip.c
index 6a20dc8b253f..9a7d7f0f23fe 100644
--- a/drivers/clocksource/numachip.c
+++ b/drivers/clocksource/numachip.c
@@ -43,7 +43,7 @@ static int numachip2_set_next_event(unsigned long delta, struct clock_event_devi
return 0;
}
-static struct clock_event_device numachip2_clockevent = {
+static const struct clock_event_device numachip2_clockevent __initconst = {
.name = "numachip2",
.rating = 400,
.set_next_event = numachip2_set_next_event,