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-imx/mach-mx31_3ds.c | |
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-imx/mach-mx31_3ds.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx31_3ds.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c index bc301befdd06..1ed916175d41 100644 --- a/arch/arm/mach-imx/mach-mx31_3ds.c +++ b/arch/arm/mach-imx/mach-mx31_3ds.c | |||
@@ -762,10 +762,6 @@ static void __init mx31_3ds_timer_init(void) | |||
762 | mx31_clocks_init(26000000); | 762 | mx31_clocks_init(26000000); |
763 | } | 763 | } |
764 | 764 | ||
765 | static struct sys_timer mx31_3ds_timer = { | ||
766 | .init = mx31_3ds_timer_init, | ||
767 | }; | ||
768 | |||
769 | static void __init mx31_3ds_reserve(void) | 765 | static void __init mx31_3ds_reserve(void) |
770 | { | 766 | { |
771 | /* reserve MX31_3DS_CAMERA_BUF_SIZE bytes for mx3-camera */ | 767 | /* reserve MX31_3DS_CAMERA_BUF_SIZE bytes for mx3-camera */ |
@@ -780,7 +776,7 @@ MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)") | |||
780 | .init_early = imx31_init_early, | 776 | .init_early = imx31_init_early, |
781 | .init_irq = mx31_init_irq, | 777 | .init_irq = mx31_init_irq, |
782 | .handle_irq = imx31_handle_irq, | 778 | .handle_irq = imx31_handle_irq, |
783 | .timer = &mx31_3ds_timer, | 779 | .init_time = mx31_3ds_timer_init, |
784 | .init_machine = mx31_3ds_init, | 780 | .init_machine = mx31_3ds_init, |
785 | .reserve = mx31_3ds_reserve, | 781 | .reserve = mx31_3ds_reserve, |
786 | .restart = mxc_restart, | 782 | .restart = mxc_restart, |