diff options
author | Magnus Damm <damm@igel.co.jp> | 2007-07-18 17:54:10 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-20 12:18:20 +0900 |
commit | 493a358e0a8992ec13098dd084223b55b05a7f03 (patch) | |
tree | ffd7480a55e21da681dbe789dc129373bef2d6cf /arch/sh/boards/se/7722/setup.c | |
parent | 1b06428ee56fadedd004bfc5e3fbb39fb8c99010 (diff) | |
download | blackbird-op-linux-493a358e0a8992ec13098dd084223b55b05a7f03.tar.gz blackbird-op-linux-493a358e0a8992ec13098dd084223b55b05a7f03.zip |
sh: clean up interrupt code for solution engine 7722 board
This patch cleans up solution engine 7722 specific interrupt code.
The main purpose is to replace the mux function with use of
set_irq_chained_handler() and replace hard coded register poking
code with set_irq_type(). The board specific interrupts are also
moved to start from SE7722_FPGA_IRQ_BASE.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/se/7722/setup.c')
-rw-r--r-- | arch/sh/boards/se/7722/setup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/boards/se/7722/setup.c b/arch/sh/boards/se/7722/setup.c index 6cca6cbc8069..495fc7e2b60f 100644 --- a/arch/sh/boards/se/7722/setup.c +++ b/arch/sh/boards/se/7722/setup.c @@ -77,6 +77,7 @@ static struct resource cf_ide_resources[] = { }, [2] = { .start = MRSHPC_IRQ0, + .end = MRSHPC_IRQ0, .flags = IORESOURCE_IRQ, }, }; @@ -140,8 +141,6 @@ static void __init se7722_setup(char **cmdline_p) static struct sh_machine_vector mv_se7722 __initmv = { .mv_name = "Solution Engine 7722" , .mv_setup = se7722_setup , - .mv_nr_irqs = 109 , + .mv_nr_irqs = SE7722_FPGA_IRQ_BASE + SE7722_FPGA_IRQ_NR, .mv_init_irq = init_se7722_IRQ, - .mv_irq_demux = se7722_irq_demux, - }; |