mfd: Convert tps6586x to irq_domain
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 13 Nov 2012 13:48:05 +0000 (19:18 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 13 Nov 2012 19:02:14 +0000 (20:02 +0100)
commit605511a848ae3ac4b2ce272ae6cbf8930b29ebb3
tree477729d59b7dfcb071374ae9bd65e7182f516fa7
parent210afeecd41b97db8ad096a778243cdcec9f1189
mfd: Convert tps6586x to irq_domain

Allocate the irq base if it base is not porvided i.e.
in case of device tree invocation of this driver.
Convert the tps6586x driver to irq domain, using a
legacy IRQ mapping if an irq_base is specified in
platform data or dynamically allocated and otherwise
using a linear mapping.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps6586x.c
include/linux/mfd/tps6586x.h