patch-2.4.10 linux/arch/sh/kernel/led_se.c

Next file: linux/arch/sh/kernel/mach_7751se.c
Previous file: linux/arch/sh/kernel/led_7751se.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/arch/sh/kernel/led_se.c linux/arch/sh/kernel/led_se.c
@@ -10,10 +10,11 @@
  */
 
 #include <linux/config.h>
+#include <asm/hitachi_se.h>
 
 static void mach_led(int position, int value)
 {
-	volatile unsigned short* p = (volatile unsigned short*)0xb0c00000;
+	volatile unsigned short* p = (volatile unsigned short*)PA_LED;
 
 	if (value) {
 		*p |= (1<<8);
@@ -30,7 +31,7 @@
 void heartbeat_se(void)
 {
 	static unsigned int cnt = 0, period = 0;
-	volatile unsigned short* p = (volatile unsigned short*)0xb0c00000;
+	volatile unsigned short* p = (volatile unsigned short*)PA_LED;
 	static unsigned bit = 0, up = 1;
 
 	cnt += 1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)