diff options
Diffstat (limited to 'arch/arm/mach-cns3xxx/core.c')
| -rw-r--r-- | arch/arm/mach-cns3xxx/core.c | 15 | 
1 files changed, 4 insertions, 11 deletions
diff --git a/arch/arm/mach-cns3xxx/core.c b/arch/arm/mach-cns3xxx/core.c index 1754f8f4f34..e698f26cc0c 100644 --- a/arch/arm/mach-cns3xxx/core.c +++ b/arch/arm/mach-cns3xxx/core.c @@ -12,10 +12,10 @@  #include <linux/interrupt.h>  #include <linux/clockchips.h>  #include <linux/io.h> +#include <linux/irqchip/arm-gic.h>  #include <asm/mach/map.h>  #include <asm/mach/time.h>  #include <asm/mach/irq.h> -#include <asm/hardware/gic.h>  #include <asm/hardware/cache-l2x0.h>  #include <mach/cns3xxx.h>  #include "core.h" @@ -134,7 +134,6 @@ static int cns3xxx_timer_set_next_event(unsigned long evt,  static struct clock_event_device cns3xxx_tmr1_clockevent = {  	.name		= "cns3xxx timer1", -	.shift		= 8,  	.features       = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,  	.set_mode	= cns3xxx_timer_set_mode,  	.set_next_event	= cns3xxx_timer_set_next_event, @@ -145,15 +144,9 @@ static struct clock_event_device cns3xxx_tmr1_clockevent = {  static void __init cns3xxx_clockevents_init(unsigned int timer_irq)  {  	cns3xxx_tmr1_clockevent.irq = timer_irq; -	cns3xxx_tmr1_clockevent.mult = -		div_sc((cns3xxx_cpu_clock() >> 3) * 1000000, NSEC_PER_SEC, -		       cns3xxx_tmr1_clockevent.shift); -	cns3xxx_tmr1_clockevent.max_delta_ns = -		clockevent_delta2ns(0xffffffff, &cns3xxx_tmr1_clockevent); -	cns3xxx_tmr1_clockevent.min_delta_ns = -		clockevent_delta2ns(0xf, &cns3xxx_tmr1_clockevent); - -	clockevents_register_device(&cns3xxx_tmr1_clockevent); +	clockevents_config_and_register(&cns3xxx_tmr1_clockevent, +					(cns3xxx_cpu_clock() >> 3) * 1000000, +					0xf, 0xffffffff);  }  /*  |