aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-12-14 12:10:23 -0500
committerTony Lindgren <tony@atomide.com>2012-12-14 12:10:23 -0500
commitbce9e90fc614eea7f286591288ea9a120ecc06cb (patch)
tree3e294273a786e67322478855eead77746d45b99b
parent698d601224824bc1a5bf17f3d86be902e2aabff0 (diff)
parentbf85f205d95eb223e849914101e0db1a5a576a3c (diff)
Merge branch 'fixes-timer-build' of git://github.com/jonhunter/linux into omap-for-v3.8/fixes-for-merge-window
Pull timer fixes from Jon Hunter <jon-hunter@ti.com>: Fixes for a few timer warnings observed with different kernel configurations for OMAP2+ devices. I have dropped the patch to fix a build error for OMAP4 in the timer code as Olof already has this fix merged.
-rw-r--r--arch/arm/mach-omap2/Kconfig3
-rw-r--r--arch/arm/mach-omap2/timer.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index be0f62bf9037..41b581fd0213 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -26,6 +26,8 @@ config SOC_HAS_OMAP2_SDRC
26 26
27config SOC_HAS_REALTIME_COUNTER 27config SOC_HAS_REALTIME_COUNTER
28 bool "Real time free running counter" 28 bool "Real time free running counter"
29 depends on SOC_OMAP5
30 default y
29 31
30config ARCH_OMAP2 32config ARCH_OMAP2
31 bool "TI OMAP2" 33 bool "TI OMAP2"
@@ -79,7 +81,6 @@ config SOC_OMAP5
79 select ARM_GIC 81 select ARM_GIC
80 select CPU_V7 82 select CPU_V7
81 select HAVE_SMP 83 select HAVE_SMP
82 select SOC_HAS_REALTIME_COUNTER
83 select COMMON_CLK 84 select COMMON_CLK
84 85
85comment "OMAP Core Type" 86comment "OMAP Core Type"
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 7016637b531c..06e141543623 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -190,7 +190,7 @@ static struct device_node * __init omap_get_timer_dt(struct of_device_id *match,
190 * kernel registering these devices remove them dynamically from the device 190 * kernel registering these devices remove them dynamically from the device
191 * tree on boot. 191 * tree on boot.
192 */ 192 */
193void __init omap_dmtimer_init(void) 193static void __init omap_dmtimer_init(void)
194{ 194{
195 struct device_node *np; 195 struct device_node *np;
196 196
@@ -210,7 +210,7 @@ void __init omap_dmtimer_init(void)
210 * 210 *
211 * Get the timer errata flags that are specific to the OMAP device being used. 211 * Get the timer errata flags that are specific to the OMAP device being used.
212 */ 212 */
213u32 __init omap_dm_timer_get_errata(void) 213static u32 __init omap_dm_timer_get_errata(void)
214{ 214{
215 if (cpu_is_omap24xx()) 215 if (cpu_is_omap24xx())
216 return 0; 216 return 0;
@@ -392,7 +392,7 @@ static struct of_device_id omap_counter_match[] __initdata = {
392}; 392};
393 393
394/* Setup free-running counter for clocksource */ 394/* Setup free-running counter for clocksource */
395static int __init omap2_sync32k_clocksource_init(void) 395static int __init __maybe_unused omap2_sync32k_clocksource_init(void)
396{ 396{
397 int ret; 397 int ret;
398 struct device_node *np = NULL; 398 struct device_node *np = NULL;