From f70fc57e52fcd6c063eb378c0c370817cf00659e Mon Sep 17 00:00:00 2001 From: Barry Song Date: Thu, 22 Sep 2011 22:51:28 -0700 Subject: ARM: CSR: timer: do not initialise statics to 0 or NULL Signed-off-by: Barry Song --- arch/arm/mach-prima2/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/mach-prima2/timer.c') diff --git a/arch/arm/mach-prima2/timer.c b/arch/arm/mach-prima2/timer.c index ed7ec48d11da..225ed3b8cee3 100644 --- a/arch/arm/mach-prima2/timer.c +++ b/arch/arm/mach-prima2/timer.c @@ -133,7 +133,7 @@ static struct irqaction sirfsoc_timer_irq = { /* Overwrite weak default sched_clock with more precise one */ unsigned long long notrace sched_clock(void) { - static int is_mapped = 0; + static int is_mapped; /* * sched_clock is called earlier than .init of sys_timer -- cgit v1.2.3 From c6b96c54130f34840bb482d8d2c851da74259c2a Mon Sep 17 00:00:00 2001 From: Barry Song Date: Thu, 22 Sep 2011 22:51:29 -0700 Subject: ARM: CSR: timer: space required before the open parenthesis '(' Signed-off-by: Barry Song --- arch/arm/mach-prima2/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/mach-prima2/timer.c') diff --git a/arch/arm/mach-prima2/timer.c b/arch/arm/mach-prima2/timer.c index 225ed3b8cee3..26ab6fee5619 100644 --- a/arch/arm/mach-prima2/timer.c +++ b/arch/arm/mach-prima2/timer.c @@ -140,7 +140,7 @@ unsigned long long notrace sched_clock(void) * if we map timer memory in .init of sys_timer, system * will panic due to illegal memory access */ - if(!is_mapped) { + if (!is_mapped) { sirfsoc_of_timer_map(); is_mapped = 1; } -- cgit v1.2.3