diff options
-rw-r--r-- | arch/arm/mach-mvebu/armada-370-xp.c | 4 | ||||
-rw-r--r-- | drivers/clocksource/time-armada-370-xp.c | 6 | ||||
-rw-r--r-- | include/linux/time-armada-370-xp.h | 18 |
3 files changed, 5 insertions, 23 deletions
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index 97cbb8021919..4ea03ad41179 100644 --- a/arch/arm/mach-mvebu/armada-370-xp.c +++ b/arch/arm/mach-mvebu/armada-370-xp.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/of_address.h> | 18 | #include <linux/of_address.h> |
19 | #include <linux/of_platform.h> | 19 | #include <linux/of_platform.h> |
20 | #include <linux/io.h> | 20 | #include <linux/io.h> |
21 | #include <linux/time-armada-370-xp.h> | 21 | #include <linux/clocksource.h> |
22 | #include <linux/dma-mapping.h> | 22 | #include <linux/dma-mapping.h> |
23 | #include <linux/mbus.h> | 23 | #include <linux/mbus.h> |
24 | #include <asm/hardware/cache-l2x0.h> | 24 | #include <asm/hardware/cache-l2x0.h> |
@@ -69,7 +69,7 @@ static void __init armada_370_xp_mbus_init(void) | |||
69 | static void __init armada_370_xp_timer_and_clk_init(void) | 69 | static void __init armada_370_xp_timer_and_clk_init(void) |
70 | { | 70 | { |
71 | of_clk_init(NULL); | 71 | of_clk_init(NULL); |
72 | armada_370_xp_timer_init(); | 72 | clocksource_of_init(); |
73 | coherency_init(); | 73 | coherency_init(); |
74 | armada_370_xp_mbus_init(); | 74 | armada_370_xp_mbus_init(); |
75 | #ifdef CONFIG_CACHE_L2X0 | 75 | #ifdef CONFIG_CACHE_L2X0 |
diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c index abc2c9f04821..1e4b523f27c1 100644 --- a/drivers/clocksource/time-armada-370-xp.c +++ b/drivers/clocksource/time-armada-370-xp.c | |||
@@ -212,13 +212,11 @@ static struct local_timer_ops armada_370_xp_local_timer_ops = { | |||
212 | .stop = armada_370_xp_timer_stop, | 212 | .stop = armada_370_xp_timer_stop, |
213 | }; | 213 | }; |
214 | 214 | ||
215 | void __init armada_370_xp_timer_init(void) | 215 | static void __init armada_370_xp_timer_init(struct device_node *np) |
216 | { | 216 | { |
217 | u32 clr = 0, set = 0; | 217 | u32 clr = 0, set = 0; |
218 | struct device_node *np; | ||
219 | int res; | 218 | int res; |
220 | 219 | ||
221 | np = of_find_compatible_node(NULL, NULL, "marvell,armada-370-xp-timer"); | ||
222 | timer_base = of_iomap(np, 0); | 220 | timer_base = of_iomap(np, 0); |
223 | WARN_ON(!timer_base); | 221 | WARN_ON(!timer_base); |
224 | local_base = of_iomap(np, 1); | 222 | local_base = of_iomap(np, 1); |
@@ -290,3 +288,5 @@ void __init armada_370_xp_timer_init(void) | |||
290 | #endif | 288 | #endif |
291 | } | 289 | } |
292 | } | 290 | } |
291 | CLOCKSOURCE_OF_DECLARE(armada_370_xp, "marvell,armada-370-xp-timer", | ||
292 | armada_370_xp_timer_init); | ||
diff --git a/include/linux/time-armada-370-xp.h b/include/linux/time-armada-370-xp.h deleted file mode 100644 index dfdfdc03115b..000000000000 --- a/include/linux/time-armada-370-xp.h +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /* | ||
2 | * Marvell Armada 370/XP SoC timer handling. | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Lior Amsalem <alior@marvell.com> | ||
7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> | ||
8 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
9 | * | ||
10 | */ | ||
11 | #ifndef __TIME_ARMADA_370_XPPRCMU_H | ||
12 | #define __TIME_ARMADA_370_XPPRCMU_H | ||
13 | |||
14 | #include <linux/init.h> | ||
15 | |||
16 | void __init armada_370_xp_timer_init(void); | ||
17 | |||
18 | #endif | ||