aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-10-16 14:21:04 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-10-26 03:39:46 -0400
commitce931f571b6dcf8534e8740e8cd16565cf362536 (patch)
tree0dc6586cd1596418bf1457a95815bd03627dd910
parentd0235677311cbd404a3dcd3c0f24bf15dd24dd36 (diff)
gpio/mvebu: convert to use irq_domain_add_simple()
The MVEBU driver probably just wants a few IRQs. Using the simple domain has the upside of allocating IRQ descriptors if need be, especially in a SPARSE_IRQ environment. Cc: Rob Herring <rob.herring@calxeda.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Cc: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-mvebu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index 902af437eaf2..e0bde063221f 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -645,8 +645,8 @@ static int __devinit mvebu_gpio_probe(struct platform_device *pdev)
645 IRQ_NOREQUEST, IRQ_LEVEL | IRQ_NOPROBE); 645 IRQ_NOREQUEST, IRQ_LEVEL | IRQ_NOPROBE);
646 646
647 /* Setup irq domain on top of the generic chip. */ 647 /* Setup irq domain on top of the generic chip. */
648 mvchip->domain = irq_domain_add_legacy(np, mvchip->chip.ngpio, 648 mvchip->domain = irq_domain_add_simple(np, mvchip->chip.ngpio,
649 mvchip->irqbase, 0, 649 mvchip->irqbase,
650 &irq_domain_simple_ops, 650 &irq_domain_simple_ops,
651 mvchip); 651 mvchip);
652 if (!mvchip->domain) { 652 if (!mvchip->domain) {