aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/dmtimer.c
diff options
context:
space:
mode:
authorSantosh Shilimkar <santosh.shilimkar@ti.com>2009-05-25 14:08:36 -0400
committerTony Lindgren <tony@atomide.com>2009-05-25 14:08:36 -0400
commitaea2a5b03c6476175c6f498a72cfbe73f7f47528 (patch)
tree5fd0a6aad116914b3a6da9cdebcfb3add05e16a9 /arch/arm/plat-omap/dmtimer.c
parenta9a418d4553290b824f95df65bd20097d7691233 (diff)
ARM: OMAP: Remove unwanted type casts and fix the compiler warning.
This patch fixes the compiler warning "assignment from incompatible pointer type" in dmtimer.c and removes the tye casts. These warnings were suppressed by type catsing. The proposed fix was suggested by Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/dmtimer.c')
-rw-r--r--arch/arm/plat-omap/dmtimer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index 55bb99631292..ee206122f507 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -214,7 +214,7 @@ static const char *omap2_dm_source_names[] __initdata = {
214 NULL 214 NULL
215}; 215};
216 216
217static struct clk **omap2_dm_source_clocks[3]; 217static struct clk *omap2_dm_source_clocks[3];
218static const int dm_timer_count = ARRAY_SIZE(omap2_dm_timers); 218static const int dm_timer_count = ARRAY_SIZE(omap2_dm_timers);
219 219
220#elif defined(CONFIG_ARCH_OMAP3) 220#elif defined(CONFIG_ARCH_OMAP3)
@@ -247,7 +247,7 @@ static const char *omap3_dm_source_names[] __initdata = {
247 NULL 247 NULL
248}; 248};
249 249
250static struct clk **omap3_dm_source_clocks[2]; 250static struct clk *omap3_dm_source_clocks[2];
251static const int dm_timer_count = ARRAY_SIZE(omap3_dm_timers); 251static const int dm_timer_count = ARRAY_SIZE(omap3_dm_timers);
252 252
253#else 253#else
@@ -257,7 +257,7 @@ static const int dm_timer_count = ARRAY_SIZE(omap3_dm_timers);
257#endif 257#endif
258 258
259static struct omap_dm_timer *dm_timers; 259static struct omap_dm_timer *dm_timers;
260static char **dm_source_names; 260static const char **dm_source_names;
261static struct clk **dm_source_clocks; 261static struct clk **dm_source_clocks;
262 262
263static spinlock_t dm_timer_lock; 263static spinlock_t dm_timer_lock;
@@ -705,12 +705,12 @@ int __init omap_dm_timer_init(void)
705 dm_timers = omap1_dm_timers; 705 dm_timers = omap1_dm_timers;
706 else if (cpu_is_omap24xx()) { 706 else if (cpu_is_omap24xx()) {
707 dm_timers = omap2_dm_timers; 707 dm_timers = omap2_dm_timers;
708 dm_source_names = (char **)omap2_dm_source_names; 708 dm_source_names = omap2_dm_source_names;
709 dm_source_clocks = (struct clk **)omap2_dm_source_clocks; 709 dm_source_clocks = omap2_dm_source_clocks;
710 } else if (cpu_is_omap34xx()) { 710 } else if (cpu_is_omap34xx()) {
711 dm_timers = omap3_dm_timers; 711 dm_timers = omap3_dm_timers;
712 dm_source_names = (char **)omap3_dm_source_names; 712 dm_source_names = omap3_dm_source_names;
713 dm_source_clocks = (struct clk **)omap3_dm_source_clocks; 713 dm_source_clocks = omap3_dm_source_clocks;
714 } 714 }
715 715
716 if (cpu_class_is_omap2()) 716 if (cpu_class_is_omap2())