Skip to content

Commit

Permalink
ARM: 8280/1: sa1100: switch to irq_domain_add_simple()
Browse files Browse the repository at this point in the history
As now both SC and GPIO irq domains start from 0 hwirq and do not
contain holes, switch to using irq_domain_add_simple() instead of
irq_domain_add_legacy().

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Dmitry Eremin-Solenikov authored and Russell King committed Jan 29, 2015
1 parent 590f266 commit a82be3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/arm/mach-sa1100/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ void __init sa1100_init_irq(void)
*/
ICCR = 1;

sa1100_normal_irqdomain = irq_domain_add_legacy(NULL,
32, IRQ_GPIO0_SC, 0,
sa1100_normal_irqdomain = irq_domain_add_simple(NULL,
32, IRQ_GPIO0_SC,
&sa1100_normal_irqdomain_ops, NULL);

sa1100_gpio_irqdomain = irq_domain_add_legacy(NULL,
28, IRQ_GPIO0, 0,
sa1100_gpio_irqdomain = irq_domain_add_simple(NULL,
28, IRQ_GPIO0,
&sa1100_gpio_irqdomain_ops, NULL);

/*
Expand Down

0 comments on commit a82be3f

Please sign in to comment.