Skip to content

Commit

Permalink
sh: hd64461: Trivial build fixes for SH7709.
Browse files Browse the repository at this point in the history
Some trivial fixes to get SH7709 + HD64461 building again.

Signed-off-by: Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Kristoffer Ericson authored and Paul Mundt committed Sep 21, 2007
1 parent eb650d6 commit f138230
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/sh/cchips/hd6446x/hd64461.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#include <asm/irq.h>
#include <asm/hd64461.h>

/* This belongs in cpu specific */
#define INTC_ICR1 0xA4140010UL

static void disable_hd64461_irq(unsigned int irq)
{
unsigned short nimr;
Expand Down Expand Up @@ -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 };
Expand All @@ -143,6 +146,7 @@ int __init setup_hd64461(void)
#endif
outw(0xffff, HD64461_NIMR);

/* IRQ 80 -> 95 belongs to HD64461 */
for (i = HD64461_IRQBASE; i < HD64461_IRQBASE + 16; i++) {
irq_desc[i].chip = &hd64461_irq_type;
}
Expand Down

0 comments on commit f138230

Please sign in to comment.