]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sh: rework ipr code
authorMagnus Damm <damm@igel.co.jp>
Fri, 15 Jun 2007 09:56:19 +0000 (18:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 15 Jun 2007 09:56:19 +0000 (18:56 +0900)
commit68abdbbb03476a60d932eeba0035dd5069afec38
treede3854f76d6d9aec121c432a3cd276bb756003c9
parent50f63f2518ee68bc132d357d2b6fdb7f60ef79e0
sh: rework ipr code

This patch reworks the ipr code by grouping the offset array together
with the ipr_data structure in a new data structure called ipr_desc.
This new structure also contains the name of the controller in struct
irq_chip. The idea behind putting struct irq_chip in there is that we
can use offsetof() to locate the base addresses in the irq_chip
callbacks. This strategy has much in common with the recently merged
intc2 code.

One logic change has been made - the original ipr code enabled the
interrupts by default but with this patch they are all disabled by
default.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
20 files changed:
arch/sh/boards/se/770x/irq.c
arch/sh/boards/se/7722/irq.c
arch/sh/boards/se/7751/irq.c
arch/sh/boards/sh03/setup.c
arch/sh/boards/shmin/setup.c
arch/sh/boards/snapgear/setup.c
arch/sh/boards/titan/setup.c
arch/sh/kernel/cpu/irq/ipr.c
arch/sh/kernel/cpu/sh2/setup-sh7619.c
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
arch/sh/kernel/cpu/sh3/setup-sh7705.c
arch/sh/kernel/cpu/sh3/setup-sh7709.c
arch/sh/kernel/cpu/sh3/setup-sh7710.c
arch/sh/kernel/cpu/sh4/setup-sh7750.c
arch/sh/kernel/cpu/sh4/setup-sh7760.c
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
include/asm-sh/hw_irq.h
include/asm-sh/irq.h
include/asm-sh/sh03/io.h
include/asm-sh/snapgear.h