]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Allocate wm835x irq descs dynamically
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 2 Jun 2011 18:18:54 +0000 (19:18 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:20 +0000 (23:28 +0200)
commit474ad6544a33a585d7a90d143313f1bd1d1aa445
tree3841b65f9c2808874f7954ce1e2c4035904bc4fd
parent099a5d7fe87af7f10eae41037be8a57512a49c9a
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