]> 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)
commit3e28a5c2eb95995ac336b4015a1a40d51a5b044b
tree3841b65f9c2808874f7954ce1e2c4035904bc4fd
parent5e331c957b6e3c595eb2ca45f5c1402b3bd19382
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