]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: tc3589x: Use simple irqdomain
authorLinus Walleij <linus.walleij@stericsson.com>
Wed, 2 Jan 2013 13:40:14 +0000 (14:40 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 22 Jan 2013 02:08:34 +0000 (03:08 +0100)
commit2dfd43ec108bda5dd3bcbf9a1b672c4b7bd190b7
treeb1acdc7f38ccad16ab0c7281767534bd63c8ba10
parent3f0799f6a852be8c1bc1e5ddbc3a085240ca8760
mfd: tc3589x: Use simple irqdomain

This fixes a regression in the TC3589x driver introduced in
commit e9e2fabcfeff45a02310509fc74ad433324dedb8
"mfd: Provide the tc3589x with its own IRQ domain"

If a system with a TC3589x expander is booted and a base
IRQ is passed from platform data, a legacy domain will
be used. However, since the Ux500 is now switched to use
SPARSE_IRQ, no descriptors get allocated on-the-fly,
and we get a crash.

Fix this by switching to using the simple irqdomain that
will handle this uniformly and also allocates descriptors
explicitly.

Also fix two small whitespace errors in the vicinity while
we're at it.

Cc: stable@kernel.org
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tc3589x.c