diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-11-08 14:40:59 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-12-24 11:36:38 -0500 |
commit | 6bb27d7349db51b50c40534710fe164ca0d58902 (patch) | |
tree | 8f227c8bbf27b87275302dc133bb2b949b64622f /arch/arm/mach-vt8500 | |
parent | 7704c095230e2e9863f3aacd0489a4b4cc00bf45 (diff) |
ARM: delete struct sys_timer
Now that the only field in struct sys_timer is .init, delete the struct,
and replace the machine descriptor .timer field with the initialization
function itself.
This will enable moving timer drivers into drivers/clocksource without
having to place a public prototype of each struct sys_timer object into
include/linux; the intent is to create a single of_clocksource_init()
function that determines which timer driver to initialize by scanning
the device dtree, much like the proposed irqchip_init() at:
http://www.spinics.net/lists/arm-kernel/msg203686.html
Includes mach-omap2 fixes from Igor Grinberg.
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-vt8500')
-rw-r--r-- | arch/arm/mach-vt8500/vt8500.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-vt8500/vt8500.c b/arch/arm/mach-vt8500/vt8500.c index 3c66d48ea082..d5b9c6689c9d 100644 --- a/arch/arm/mach-vt8500/vt8500.c +++ b/arch/arm/mach-vt8500/vt8500.c | |||
@@ -175,10 +175,6 @@ static void __init vt8500_init_irq(void) | |||
175 | of_irq_init(vt8500_irq_match); | 175 | of_irq_init(vt8500_irq_match); |
176 | }; | 176 | }; |
177 | 177 | ||
178 | static struct sys_timer vt8500_timer = { | ||
179 | .init = vt8500_timer_init, | ||
180 | }; | ||
181 | |||
182 | static const char * const vt8500_dt_compat[] = { | 178 | static const char * const vt8500_dt_compat[] = { |
183 | "via,vt8500", | 179 | "via,vt8500", |
184 | "wm,wm8650", | 180 | "wm,wm8650", |
@@ -189,7 +185,7 @@ DT_MACHINE_START(WMT_DT, "VIA/Wondermedia SoC (Device Tree Support)") | |||
189 | .dt_compat = vt8500_dt_compat, | 185 | .dt_compat = vt8500_dt_compat, |
190 | .map_io = vt8500_map_io, | 186 | .map_io = vt8500_map_io, |
191 | .init_irq = vt8500_init_irq, | 187 | .init_irq = vt8500_init_irq, |
192 | .timer = &vt8500_timer, | 188 | .init_time = vt8500_timer_init, |
193 | .init_machine = vt8500_init, | 189 | .init_machine = vt8500_init, |
194 | .restart = vt8500_restart, | 190 | .restart = vt8500_restart, |
195 | .handle_irq = vt8500_handle_irq, | 191 | .handle_irq = vt8500_handle_irq, |