mfd: Allocate wm835x irq descs dynamically
commitd1738aef387ab9591a6d13b00945e248b942c53f
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 2 Jun 2011 18:18:54 +0000 (2 19:18 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:20 +0000 (31 23:28 +0200)
tree3841b65f9c2808874f7954ce1e2c4035904bc4fd
parente69b6de181167a132eee7c38c7e4b47dea3d8e49
mfd: Allocate wm835x irq descs dynamically

This allows boards to leave the irq_base field unitialized and
prevents them having to reserve irqs in the platform.
pdata can be optional for irq support now. Without pdata the
driver allocates some free irq range. With pdata and irq_base > 0
the driver allocates exactly the specified irq.
Without pdata the irq defaults to IRQF_TRIGGER_LOW.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8350-irq.c