diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-07-20 15:54:29 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-07-22 10:55:49 -0400 |
commit | 1525e06e4414dbe053ea10cbd8cc03bb150e8e27 (patch) | |
tree | eba136290d98b7150ee2bde8293b6619085e0217 /arch/m68k | |
parent | 897f3325a17e17dcdf8f3950a2b83542645902e5 (diff) |
m68k/apollo: Rename "timer" to "apollo_timer"
In file included from include/linux/kgdb.h:17,
from include/linux/fb.h:8,
from drivers/video/dnfb.c:15:
include/linux/serial_8250.h:71: error: expected identifier or ‘(’ before numeric constant
include/linux/serial_8250.h:72: error: expected ‘;’ before ‘struct’
make[1]: *** [drivers/video/dnfb.o] Error 1
This is caused by
#define timer (IO_BASE + timer_physaddr)
in <asm/apollohw.h>, which conflicts with the new "timer" struct member in
<linux/serial_8250.h>.
Rename "timer" to "apollo_timer", as it's a way too generic name for a
global #define.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
--
http://kisskb.ellerman.id.au/kisskb/buildresult/6739606/
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/apollo/config.c | 16 | ||||
-rw-r--r-- | arch/m68k/include/asm/apollohw.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/m68k/apollo/config.c b/arch/m68k/apollo/config.c index 0a30406b9442..f5565d6eeb8e 100644 --- a/arch/m68k/apollo/config.c +++ b/arch/m68k/apollo/config.c | |||
@@ -177,8 +177,8 @@ irqreturn_t dn_timer_int(int irq, void *dev_id) | |||
177 | 177 | ||
178 | timer_handler(irq, dev_id); | 178 | timer_handler(irq, dev_id); |
179 | 179 | ||
180 | x=*(volatile unsigned char *)(timer+3); | 180 | x = *(volatile unsigned char *)(apollo_timer + 3); |
181 | x=*(volatile unsigned char *)(timer+5); | 181 | x = *(volatile unsigned char *)(apollo_timer + 5); |
182 | 182 | ||
183 | return IRQ_HANDLED; | 183 | return IRQ_HANDLED; |
184 | } | 184 | } |
@@ -186,17 +186,17 @@ irqreturn_t dn_timer_int(int irq, void *dev_id) | |||
186 | void dn_sched_init(irq_handler_t timer_routine) | 186 | void dn_sched_init(irq_handler_t timer_routine) |
187 | { | 187 | { |
188 | /* program timer 1 */ | 188 | /* program timer 1 */ |
189 | *(volatile unsigned char *)(timer+3)=0x01; | 189 | *(volatile unsigned char *)(apollo_timer + 3) = 0x01; |
190 | *(volatile unsigned char *)(timer+1)=0x40; | 190 | *(volatile unsigned char *)(apollo_timer + 1) = 0x40; |
191 | *(volatile unsigned char *)(timer+5)=0x09; | 191 | *(volatile unsigned char *)(apollo_timer + 5) = 0x09; |
192 | *(volatile unsigned char *)(timer+7)=0xc4; | 192 | *(volatile unsigned char *)(apollo_timer + 7) = 0xc4; |
193 | 193 | ||
194 | /* enable IRQ of PIC B */ | 194 | /* enable IRQ of PIC B */ |
195 | *(volatile unsigned char *)(pica+1)&=(~8); | 195 | *(volatile unsigned char *)(pica+1)&=(~8); |
196 | 196 | ||
197 | #if 0 | 197 | #if 0 |
198 | printk("*(0x10803) %02x\n",*(volatile unsigned char *)(timer+0x3)); | 198 | printk("*(0x10803) %02x\n",*(volatile unsigned char *)(apollo_timer + 0x3)); |
199 | printk("*(0x10803) %02x\n",*(volatile unsigned char *)(timer+0x3)); | 199 | printk("*(0x10803) %02x\n",*(volatile unsigned char *)(apollo_timer + 0x3)); |
200 | #endif | 200 | #endif |
201 | 201 | ||
202 | if (request_irq(IRQ_APOLLO, dn_timer_int, 0, "time", timer_routine)) | 202 | if (request_irq(IRQ_APOLLO, dn_timer_int, 0, "time", timer_routine)) |
diff --git a/arch/m68k/include/asm/apollohw.h b/arch/m68k/include/asm/apollohw.h index a1373b9aa281..635ef4f89010 100644 --- a/arch/m68k/include/asm/apollohw.h +++ b/arch/m68k/include/asm/apollohw.h | |||
@@ -98,7 +98,7 @@ extern u_long timer_physaddr; | |||
98 | #define cpuctrl (*(volatile unsigned int *)(IO_BASE + cpuctrl_physaddr)) | 98 | #define cpuctrl (*(volatile unsigned int *)(IO_BASE + cpuctrl_physaddr)) |
99 | #define pica (IO_BASE + pica_physaddr) | 99 | #define pica (IO_BASE + pica_physaddr) |
100 | #define picb (IO_BASE + picb_physaddr) | 100 | #define picb (IO_BASE + picb_physaddr) |
101 | #define timer (IO_BASE + timer_physaddr) | 101 | #define apollo_timer (IO_BASE + timer_physaddr) |
102 | #define addr_xlat_map ((unsigned short *)(IO_BASE + 0x17000)) | 102 | #define addr_xlat_map ((unsigned short *)(IO_BASE + 0x17000)) |
103 | 103 | ||
104 | #define isaIO2mem(x) (((((x) & 0x3f8) << 7) | (((x) & 0xfc00) >> 6) | ((x) & 0x7)) + 0x40000 + IO_BASE) | 104 | #define isaIO2mem(x) (((((x) & 0x3f8) << 7) | (((x) & 0xfc00) >> 6) | ((x) & 0x7)) + 0x40000 + IO_BASE) |