sh: Cleanup source code of MS7722SE
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Tue, 17 Jun 2008 07:27:38 +0000 (16:27 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 7 Jul 2008 02:21:38 +0000 (11:21 +0900)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/ms7722se/ms7722se.c

index 0d3d55cf5cabf66e2facd32c24c5b659c7c532a0..cf02242299fbf227955acb2df764873a810c57a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007
+ * Copyright (C) 2007,2008
  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  *
  * Copyright (C) 2007
@@ -43,7 +43,7 @@ int board_init(void)
        return 0;
 }
 
-int dram_init (void)
+int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
@@ -53,7 +53,7 @@ int dram_init (void)
        return 0;
 }
 
-void led_set_state (unsigned short value)
+void led_set_state(unsigned short value)
 {
-       *((volatile unsigned short *) LED_BASE) = (value & 0xFF);
+       writew(value & 0xFF, LED_BASE);
 }