mfd: Allocate twl6040 IRQ numbers dynamically
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 May 2012 11:11:56 +0000 (14:11 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 20 May 2012 15:27:12 +0000 (17:27 +0200)
commit6712419d697851c4472cdfd2111c844d777472e8
treeb2725bdab830ceb9cd2712357e4a36aace81dd45
parent68029c6cf9750ff0d4ed5c812a3755cbd855862a
mfd: Allocate twl6040 IRQ numbers dynamically

Use irq_alloc_descs() to get the IRQ number range dynamically instead of
the hardwired use if pdata->irq_base.
The twl6040 only provides interrupts for it's internal components which
means that it is not working as an IRQ expander type of device.
The client drivers will receive their interrupt numbers as resource which
is configured based on the received IRQ range we got from irq_alloc_descs()

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl6040-core.c
drivers/mfd/twl6040-irq.c