提交 f1382305 编写于 作者: K Kristoffer Ericson 提交者: Paul Mundt

sh: hd64461: Trivial build fixes for SH7709.

Some trivial fixes to get SH7709 + HD64461 building again.
Signed-off-by: NKristoffer Ericson <Kristoffer.Ericson@gmail.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 eb650d67
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/hd64461.h> #include <asm/hd64461.h>
/* This belongs in cpu specific */
#define INTC_ICR1 0xA4140010UL
static void disable_hd64461_irq(unsigned int irq) static void disable_hd64461_irq(unsigned int irq)
{ {
unsigned short nimr; unsigned short nimr;
...@@ -121,7 +124,7 @@ int hd64461_irq_demux(int irq) ...@@ -121,7 +124,7 @@ int hd64461_irq_demux(int irq)
} }
} }
} }
return __irq_demux(irq); return irq;
} }
static struct irqaction irq0 = { hd64461_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "HD64461", NULL, NULL }; static struct irqaction irq0 = { hd64461_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "HD64461", NULL, NULL };
...@@ -143,6 +146,7 @@ int __init setup_hd64461(void) ...@@ -143,6 +146,7 @@ int __init setup_hd64461(void)
#endif #endif
outw(0xffff, HD64461_NIMR); outw(0xffff, HD64461_NIMR);
/* IRQ 80 -> 95 belongs to HD64461 */
for (i = HD64461_IRQBASE; i < HD64461_IRQBASE + 16; i++) { for (i = HD64461_IRQBASE; i < HD64461_IRQBASE + 16; i++) {
irq_desc[i].chip = &hd64461_irq_type; irq_desc[i].chip = &hd64461_irq_type;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册