s5pc1xx: remove warnings
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 8 Sep 2009 07:23:02 +0000 (16:23 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 8 Sep 2009 07:23:02 +0000 (16:23 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
cpu/arm_cortexa8/config.mk
cpu/arm_cortexa8/s5pc1xx/clock.c
cpu/arm_cortexa8/s5pc1xx/timer.c

index 49ac9c7..da5ee16 100644 (file)
@@ -20,7 +20,8 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
+PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
+                    -msoft-float
 
 # Make ARMv5 to allow more compilers to work, even though its v7a.
 PLATFORM_CPPFLAGS += -march=armv5
index eca8786..c4ab655 100644 (file)
@@ -247,7 +247,7 @@ unsigned long get_hclk_sys(int clk)
         * HCLK_MSYS_RATIO: [10:8]
         * HCLK_DSYS_RATIO: [19:16]
         * HCLK_PSYS_RATIO: [27:24]
-        * */
+        */
        offset = 8 + (clk << 0x3);
 
        hclk_sys_ratio = (div >> offset) & 0xf;
index 8d62b7d..9de7ff1 100644 (file)
@@ -44,10 +44,8 @@ static unsigned long long timestamp; /* Monotonic incrementing timer */
 static unsigned long lastdec;          /* Last decremneter snapshot */
 
 /* macro to read the 16 bit timer */
-static inline unsigned long s5pc1xx_get_base_timer(void)
+static inline s5pc1xx_timers_t *s5pc1xx_get_base_timer(void)
 {
-       s5pc1xx_timers_t *timer;
-
        if (cpu_is_s5pc110())
                return (s5pc1xx_timers_t *)S5PC110_TIMER_BASE;
        else
@@ -56,7 +54,7 @@ static inline unsigned long s5pc1xx_get_base_timer(void)
 
 int timer_init(void)
 {
-       s5pc1xx_timers_t *timer  = s5pc1xx_get_base_timer();
+       s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
        u32 val;
 
        /*
@@ -156,7 +154,7 @@ void udelay(unsigned long usec)
 
 void reset_timer_masked(void)
 {
-       s5pc1xx_timers_t *timer  = s5pc1xx_get_base_timer();
+       s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
 
        /* reset time */
        lastdec = readl(&timer->TCNTO4);
@@ -165,7 +163,7 @@ void reset_timer_masked(void)
 
 unsigned long get_timer_masked(void)
 {
-       s5pc1xx_timers_t *timer  = s5pc1xx_get_base_timer();
+       s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
        unsigned long now = readl(&timer->TCNTO4);
 
        if (lastdec >= now)