sh: Use dummy_irq_chip for INTC redirect vectors.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 03:37:42 +0000 (12:37 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 03:37:42 +0000 (12:37 +0900)
commit4d2185d93c670902b6e4716b360e2bcb7d2f7b2f
treec64add5c030ff50660af80664d5e294d6c3f2e9d
parent319c2cc761505ee54a9536c5d0b9c2ee3fb33866
sh: Use dummy_irq_chip for INTC redirect vectors.

Presently there's an ordering issue with the chained handler change
which places the set_irq_chip() after set_irq_chained_handler(). This
causes a warning to be emitted as the IRQ chip needs to be set first.
However, there is the caveat that redirect IRQs can't use the parent
IRQ's irq chip as they are just dummy redirects, resulting in
intc_enable() blowing up when set_irq_chained_handler() attempts to
start up the redirect IRQ. In these cases we can just use dummy_irq_chip
directly, as we already extract the parent IRQ and chip from the redirect
handler.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/intc.c