diff options
author | Kevin Hilman <khilman@linaro.org> | 2013-08-13 18:12:02 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2013-08-13 18:12:20 -0400 |
commit | bee22087faf5bbf33fcb61e6c5e8f8ef7ebd77a5 (patch) | |
tree | 1ca5384ec71f31bd9ae04d867952ca2ced00fe11 /arch/arm/mach-msm/timer.c | |
parent | 311b79bb7e253dc5916db6dc14374dae0cd4ff9c (diff) | |
parent | 3294a7e7c3a55bb4eb9d98b0af5643a7ea44afe1 (diff) |
Merge branch 'msm/cleanup' into next/cleanup
From David Brown <davidb@codeaurora.org>:
* msm/cleanup:
ARM: msm: Only compile io.c on platforms that use it
iommu/msm: Move mach includes to iommu directory
ARM: msm: Remove devices-iommu.c
ARM: msm: Move mach/board.h contents to common.h
ARM: msm: Migrate msm_timer to CLOCKSOURCE_OF_DECLARE
ARM: msm: Remove TMR and TMR0 static mappings
ARM: msm: Move debug-macro.S to include/debug
ARM: msm: Don't compile __msm_ioremap_caller() unless used
ARM: msm: Remove unused and unmapped MSM_TLMM_BASE for 8x60
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'arch/arm/mach-msm/timer.c')
-rw-r--r-- | arch/arm/mach-msm/timer.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c index a7afbacae61a..696fb73296d0 100644 --- a/arch/arm/mach-msm/timer.c +++ b/arch/arm/mach-msm/timer.c | |||
@@ -233,15 +233,8 @@ err: | |||
233 | } | 233 | } |
234 | 234 | ||
235 | #ifdef CONFIG_OF | 235 | #ifdef CONFIG_OF |
236 | static const struct of_device_id msm_timer_match[] __initconst = { | 236 | static void __init msm_dt_timer_init(struct device_node *np) |
237 | { .compatible = "qcom,kpss-timer" }, | ||
238 | { .compatible = "qcom,scss-timer" }, | ||
239 | { }, | ||
240 | }; | ||
241 | |||
242 | void __init msm_dt_timer_init(void) | ||
243 | { | 237 | { |
244 | struct device_node *np; | ||
245 | u32 freq; | 238 | u32 freq; |
246 | int irq; | 239 | int irq; |
247 | struct resource res; | 240 | struct resource res; |
@@ -249,12 +242,6 @@ void __init msm_dt_timer_init(void) | |||
249 | void __iomem *base; | 242 | void __iomem *base; |
250 | void __iomem *cpu0_base; | 243 | void __iomem *cpu0_base; |
251 | 244 | ||
252 | np = of_find_matching_node(NULL, msm_timer_match); | ||
253 | if (!np) { | ||
254 | pr_err("Can't find msm timer DT node\n"); | ||
255 | return; | ||
256 | } | ||
257 | |||
258 | base = of_iomap(np, 0); | 245 | base = of_iomap(np, 0); |
259 | if (!base) { | 246 | if (!base) { |
260 | pr_err("Failed to map event base\n"); | 247 | pr_err("Failed to map event base\n"); |
@@ -297,6 +284,8 @@ void __init msm_dt_timer_init(void) | |||
297 | 284 | ||
298 | msm_timer_init(freq, 32, irq, !!percpu_offset); | 285 | msm_timer_init(freq, 32, irq, !!percpu_offset); |
299 | } | 286 | } |
287 | CLOCKSOURCE_OF_DECLARE(kpss_timer, "qcom,kpss-timer", msm_dt_timer_init); | ||
288 | CLOCKSOURCE_OF_DECLARE(scss_timer, "qcom,scss-timer", msm_dt_timer_init); | ||
300 | #endif | 289 | #endif |
301 | 290 | ||
302 | static int __init msm_timer_map(phys_addr_t addr, u32 event, u32 source, | 291 | static int __init msm_timer_map(phys_addr_t addr, u32 event, u32 source, |