diff options
author | Benoit Cousson <b-cousson@ti.com> | 2012-02-29 16:38:06 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-22 08:04:54 -0400 |
commit | f01b1f90bf46ddaf2a68215a9489364c974e5689 (patch) | |
tree | 3beb31a6777b16926d81eb10d1ec0c901a175503 /drivers/gpio/gpio-twl4030.c | |
parent | 78518ffa08fceee42d61359303c58bdd0a82033f (diff) |
mfd: Make twl4030 SIH SPARSE_IRQ capable
twl4030 is using a two level irq controllers infrastruture.
So far, only the first level was using dynamic irq_desc allocation
to be able to have irq_domain support for device tree.
There is a need to allocate separate irq_descs for the SIH too to
avoid hacking the first level with interrupts from the second level.
Add an irq_base parameter to allow the caller to provide the base from
pdata or from dynamic allocation.
Affect TWL4030_NR_IRQS to the twl-core IRQs only.
Moreover that will allow the extraction of the of_node pointer for further
Device Tree conversion.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-twl4030.c')
-rw-r--r-- | drivers/gpio/gpio-twl4030.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-twl4030.c b/drivers/gpio/gpio-twl4030.c index b8b4f228757c..697396c74627 100644 --- a/drivers/gpio/gpio-twl4030.c +++ b/drivers/gpio/gpio-twl4030.c | |||
@@ -404,7 +404,8 @@ static int __devinit gpio_twl4030_probe(struct platform_device *pdev) | |||
404 | "can't dispatch IRQs from modules\n"); | 404 | "can't dispatch IRQs from modules\n"); |
405 | goto no_irqs; | 405 | goto no_irqs; |
406 | } | 406 | } |
407 | ret = twl4030_sih_setup(TWL4030_MODULE_GPIO); | 407 | ret = twl4030_sih_setup(&pdev->dev, TWL4030_MODULE_GPIO, |
408 | pdata->irq_base); | ||
408 | if (ret < 0) | 409 | if (ret < 0) |
409 | return ret; | 410 | return ret; |
410 | WARN_ON(ret != pdata->irq_base); | 411 | WARN_ON(ret != pdata->irq_base); |