mfd: Use the AB8500's IRQ domain to convert hwirq to virq
authorLee Jones <lee.jones@linaro.org>
Thu, 9 Aug 2012 15:53:54 +0000 (16:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 18 Sep 2012 12:35:17 +0000 (14:35 +0200)
commit0a37fc56888c37049f60aab398fddceafd33fe72
treebf4eea5fc36e0ecfc127cbfee79d6abc5a7f167a
parent4adcefd3f908f02a5266cb37d82dc34615edbd3b
mfd: Use the AB8500's IRQ domain to convert hwirq to virq

Before the AB8500 had its own IRQ domain, the IRQ handler would take
the fired local IRQ (hwirq) and add it to the irq_base to convert it
to an IRQ number which Linux would understand (virq). However, the
IRQ base is not always used anymore since we can make use of Linear
domains. It's better to use the AB8500 hwirq -> virq mapping helper
function to convert them instead. That's what we do here.

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