Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10430364 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Thomas Gleixner
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarThomas 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
parent e19b205b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,