genirq: Fix descriptor init on non-sparse IRQs
commitda85f8e3be97d43ec727637c40e8b5d7a2731e34
authorLinus Walleij <linus.walleij@stericsson.com>
Tue, 31 May 2011 16:14:39 +0000 (31 18:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:35 +0000 (23 15:05 -0700)
tree38a62d4bdb6f2e50fb442c3677cadaca38ae8bbc
parentdec314e6cc29b2c5d19aa84c1267a1dd750451cf
genirq: Fix descriptor init on non-sparse IRQs

commit e7fbad300a7a6432238f086e3c9a61538a905858 upstream.

The genirq changes are initializing descriptors for sparse IRQs quite
differently from how non-sparse (stacked?) IRQs are initialized, with
the effect that on my platform all IRQs are default-disabled on sparse
IRQs and default-enabled if non-sparse IRQs are used, crashing some
GPIO driver.

Fix this by refactoring the non-sparse IRQs to use the same descriptor
init function as the sparse IRQs.

Signed-off: Linus Walleij <linus.walleij@linaro.org>
Link: http://lkml.kernel.org/r/1306858479-16622-1-git-send-email-linus.walleij@stericsson.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/irq/irqdesc.c