Skip to contentSkip to conversation

sh: Cleanup source code of MS7722SE

PATCH New Nobuhiro Iwamatsu 1 participant 1 message Jun 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 2/9 sh: Cleanup source code of MS7722SE

---
 board/ms7722se/ms7722se.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
board/ms7722se/ms7722se.c +4 -4
index 0d3d55c..cf02242 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007
+ * Copyright (C) 2007,2008
  * Nobuhiro Iwamatsu <[email protected]>
  *
  * 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);
 }
Signature · 1 line
1.5.5.1