diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-12-02 08:26:44 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-12-02 10:59:07 -0500 |
commit | 8117bf17fe1a2a37ba33d71e59597c0f2261ad92 (patch) | |
tree | b9366a9c8c07d51c42b6f9e4d93b1635097fd4fe /arch/arm/mach-at91 | |
parent | 85c4b31e6e462674a0392240e7e38ebe8bb22832 (diff) |
ARM: at91: at91rm9200 ST initialization is now DT only
As at91rm9200 is now DT only, there is no need to keep old entry point in this
at91rm9200 System Timer (ST) driver.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[nicolas.ferre@atmel.com: split patch]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_time.c | 23 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-dt-rm9200.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/generic.h | 2 |
3 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index 7fd13aef9827..51761f8927b7 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c | |||
@@ -183,7 +183,6 @@ static struct clock_event_device clkevt = { | |||
183 | void __iomem *at91_st_base; | 183 | void __iomem *at91_st_base; |
184 | EXPORT_SYMBOL_GPL(at91_st_base); | 184 | EXPORT_SYMBOL_GPL(at91_st_base); |
185 | 185 | ||
186 | #ifdef CONFIG_OF | ||
187 | static struct of_device_id at91rm9200_st_timer_ids[] = { | 186 | static struct of_device_id at91rm9200_st_timer_ids[] = { |
188 | { .compatible = "atmel,at91rm9200-st" }, | 187 | { .compatible = "atmel,at91rm9200-st" }, |
189 | { /* sentinel */ } | 188 | { /* sentinel */ } |
@@ -219,28 +218,6 @@ node_err: | |||
219 | err: | 218 | err: |
220 | return -EINVAL; | 219 | return -EINVAL; |
221 | } | 220 | } |
222 | #else | ||
223 | static int __init of_at91rm9200_st_init(void) | ||
224 | { | ||
225 | return -EINVAL; | ||
226 | } | ||
227 | #endif | ||
228 | |||
229 | void __init at91rm9200_ioremap_st(u32 addr) | ||
230 | { | ||
231 | #ifdef CONFIG_OF | ||
232 | struct device_node *np; | ||
233 | |||
234 | np = of_find_matching_node(NULL, at91rm9200_st_timer_ids); | ||
235 | if (np) { | ||
236 | of_node_put(np); | ||
237 | return; | ||
238 | } | ||
239 | #endif | ||
240 | at91_st_base = ioremap(addr, 256); | ||
241 | if (!at91_st_base) | ||
242 | panic("Impossible to ioremap ST\n"); | ||
243 | } | ||
244 | 221 | ||
245 | /* | 222 | /* |
246 | * ST (system timer) module supports both clockevents and clocksource. | 223 | * ST (system timer) module supports both clockevents and clocksource. |
diff --git a/arch/arm/mach-at91/board-dt-rm9200.c b/arch/arm/mach-at91/board-dt-rm9200.c index feeb1a0f258e..76dfe8f9af50 100644 --- a/arch/arm/mach-at91/board-dt-rm9200.c +++ b/arch/arm/mach-at91/board-dt-rm9200.c | |||
@@ -26,9 +26,7 @@ | |||
26 | 26 | ||
27 | static void __init at91rm9200_dt_timer_init(void) | 27 | static void __init at91rm9200_dt_timer_init(void) |
28 | { | 28 | { |
29 | #if defined(CONFIG_COMMON_CLK) | ||
30 | of_clk_init(NULL); | 29 | of_clk_init(NULL); |
31 | #endif | ||
32 | at91rm9200_timer_init(); | 30 | at91rm9200_timer_init(); |
33 | } | 31 | } |
34 | 32 | ||
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index 13c5b255e335..8527e8bd675f 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -30,8 +30,6 @@ extern void __init at91_sysirq_mask_rtc(u32 rtc_base); | |||
30 | extern void __init at91_sysirq_mask_rtt(u32 rtt_base); | 30 | extern void __init at91_sysirq_mask_rtt(u32 rtt_base); |
31 | 31 | ||
32 | /* Timer */ | 32 | /* Timer */ |
33 | extern void __init at91_init_time(void); | ||
34 | extern void at91rm9200_ioremap_st(u32 addr); | ||
35 | extern void at91rm9200_timer_init(void); | 33 | extern void at91rm9200_timer_init(void); |
36 | extern void at91sam926x_ioremap_pit(u32 addr); | 34 | extern void at91sam926x_ioremap_pit(u32 addr); |
37 | extern void at91sam926x_pit_init(int irq); | 35 | extern void at91sam926x_pit_init(int irq); |