diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-05 13:09:03 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-05 13:09:03 -0500 |
commit | 58daf18cdcab550262a5f4681e1f1e073e21965a (patch) | |
tree | 2096324b947761a567dd451f33664f17ee1de2cd /arch/arm/plat-mxc/epit.c | |
parent | aa312be1987d43216e72ffce42bccf6bf81f62ed (diff) | |
parent | 0af85dda39d9b673aca8c0ebae004ea70f3efc93 (diff) |
Merge branch 'clksrc' into devel
Conflicts:
arch/arm/mach-vexpress/v2m.c
arch/arm/plat-omap/counter_32k.c
arch/arm/plat-versatile/Makefile
Diffstat (limited to 'arch/arm/plat-mxc/epit.c')
-rw-r--r-- | arch/arm/plat-mxc/epit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/epit.c b/arch/arm/plat-mxc/epit.c index ee9582f4972e..d69d343ff61f 100644 --- a/arch/arm/plat-mxc/epit.c +++ b/arch/arm/plat-mxc/epit.c | |||
@@ -93,7 +93,6 @@ static struct clocksource clocksource_epit = { | |||
93 | .rating = 200, | 93 | .rating = 200, |
94 | .read = epit_read, | 94 | .read = epit_read, |
95 | .mask = CLOCKSOURCE_MASK(32), | 95 | .mask = CLOCKSOURCE_MASK(32), |
96 | .shift = 20, | ||
97 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 96 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
98 | }; | 97 | }; |
99 | 98 | ||
@@ -101,9 +100,7 @@ static int __init epit_clocksource_init(struct clk *timer_clk) | |||
101 | { | 100 | { |
102 | unsigned int c = clk_get_rate(timer_clk); | 101 | unsigned int c = clk_get_rate(timer_clk); |
103 | 102 | ||
104 | clocksource_epit.mult = clocksource_hz2mult(c, | 103 | clocksource_register_hz(&clocksource_epit, c); |
105 | clocksource_epit.shift); | ||
106 | clocksource_register(&clocksource_epit); | ||
107 | 104 | ||
108 | return 0; | 105 | return 0; |
109 | } | 106 | } |