diff options
Diffstat (limited to 'arch/arm/mach-spear13xx')
-rw-r--r-- | arch/arm/mach-spear13xx/include/mach/generic.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-spear13xx/spear1310.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-spear13xx/spear1340.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-spear13xx/spear13xx.c | 6 |
4 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/mach-spear13xx/include/mach/generic.h b/arch/arm/mach-spear13xx/include/mach/generic.h index 510dec798221..633e678e01a3 100644 --- a/arch/arm/mach-spear13xx/include/mach/generic.h +++ b/arch/arm/mach-spear13xx/include/mach/generic.h | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/mach/time.h> | 18 | #include <asm/mach/time.h> |
19 | 19 | ||
20 | /* Add spear13xx structure declarations here */ | 20 | /* Add spear13xx structure declarations here */ |
21 | extern struct sys_timer spear13xx_timer; | 21 | extern void spear13xx_timer_init(void); |
22 | extern struct pl022_ssp_controller pl022_plat_data; | 22 | extern struct pl022_ssp_controller pl022_plat_data; |
23 | extern struct dw_dma_platform_data dmac_plat_data; | 23 | extern struct dw_dma_platform_data dmac_plat_data; |
24 | extern struct dw_dma_slave cf_dma_priv; | 24 | extern struct dw_dma_slave cf_dma_priv; |
diff --git a/arch/arm/mach-spear13xx/spear1310.c b/arch/arm/mach-spear13xx/spear1310.c index 5de3e6f24aad..56214d1076ef 100644 --- a/arch/arm/mach-spear13xx/spear1310.c +++ b/arch/arm/mach-spear13xx/spear1310.c | |||
@@ -91,7 +91,7 @@ DT_MACHINE_START(SPEAR1310_DT, "ST SPEAr1310 SoC with Flattened Device Tree") | |||
91 | .smp = smp_ops(spear13xx_smp_ops), | 91 | .smp = smp_ops(spear13xx_smp_ops), |
92 | .map_io = spear1310_map_io, | 92 | .map_io = spear1310_map_io, |
93 | .init_irq = irqchip_init, | 93 | .init_irq = irqchip_init, |
94 | .timer = &spear13xx_timer, | 94 | .init_time = spear13xx_timer_init, |
95 | .init_machine = spear1310_dt_init, | 95 | .init_machine = spear1310_dt_init, |
96 | .restart = spear_restart, | 96 | .restart = spear_restart, |
97 | .dt_compat = spear1310_dt_board_compat, | 97 | .dt_compat = spear1310_dt_board_compat, |
diff --git a/arch/arm/mach-spear13xx/spear1340.c b/arch/arm/mach-spear13xx/spear1340.c index 18331deaed76..9a28beb2a113 100644 --- a/arch/arm/mach-spear13xx/spear1340.c +++ b/arch/arm/mach-spear13xx/spear1340.c | |||
@@ -185,7 +185,7 @@ DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree") | |||
185 | .smp = smp_ops(spear13xx_smp_ops), | 185 | .smp = smp_ops(spear13xx_smp_ops), |
186 | .map_io = spear13xx_map_io, | 186 | .map_io = spear13xx_map_io, |
187 | .init_irq = irqchip_init, | 187 | .init_irq = irqchip_init, |
188 | .timer = &spear13xx_timer, | 188 | .init_time = spear13xx_timer_init, |
189 | .init_machine = spear1340_dt_init, | 189 | .init_machine = spear1340_dt_init, |
190 | .restart = spear_restart, | 190 | .restart = spear_restart, |
191 | .dt_compat = spear1340_dt_board_compat, | 191 | .dt_compat = spear1340_dt_board_compat, |
diff --git a/arch/arm/mach-spear13xx/spear13xx.c b/arch/arm/mach-spear13xx/spear13xx.c index 22e3cd57e750..c7d2b4a8d8cc 100644 --- a/arch/arm/mach-spear13xx/spear13xx.c +++ b/arch/arm/mach-spear13xx/spear13xx.c | |||
@@ -152,7 +152,7 @@ static void __init spear13xx_clk_init(void) | |||
152 | pr_err("%s: Unknown machine\n", __func__); | 152 | pr_err("%s: Unknown machine\n", __func__); |
153 | } | 153 | } |
154 | 154 | ||
155 | static void __init spear13xx_timer_init(void) | 155 | void __init spear13xx_timer_init(void) |
156 | { | 156 | { |
157 | char pclk_name[] = "osc_24m_clk"; | 157 | char pclk_name[] = "osc_24m_clk"; |
158 | struct clk *gpt_clk, *pclk; | 158 | struct clk *gpt_clk, *pclk; |
@@ -181,7 +181,3 @@ static void __init spear13xx_timer_init(void) | |||
181 | spear_setup_of_timer(); | 181 | spear_setup_of_timer(); |
182 | twd_local_timer_of_register(); | 182 | twd_local_timer_of_register(); |
183 | } | 183 | } |
184 | |||
185 | struct sys_timer spear13xx_timer = { | ||
186 | .init = spear13xx_timer_init, | ||
187 | }; | ||