]> Pileus Git - ~andy/linux/commitdiff
mfd: ab8500: Use irqdomain to map interrupts
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Dec 2013 14:11:54 +0000 (15:11 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:27:49 +0000 (08:27 +0000)
All subdrivers use the irqdomain to demux AB8500 IRQs but here
in the hierarchical path we find a leftover instance using the
hard-coded IRQ base. Convert it to use irqdomain with a
oneliner.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-core.c

index 6788064ed899d1407978375d03e51a41fa412de9..aaff683cd37d43809bb8da6b1cd5c085f1bf664a 100644 (file)
@@ -491,7 +491,7 @@ static int ab8500_handle_hierarchical_line(struct ab8500 *ab8500,
                if (line == AB8540_INT_GPIO43F || line == AB8540_INT_GPIO44F)
                        line += 1;
 
-               handle_nested_irq(ab8500->irq_base + line);
+               handle_nested_irq(irq_create_mapping(ab8500->domain, line));
        }
 
        return 0;