aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65090.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-01-29 14:35:17 +0530
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-14 00:22:55 +0100
commit4f979ed5e2656570f433101bfc5bc116a919316b (patch)
treee01da1d5b7b20d9224c8c46b0e78202b16ddb23c /drivers/mfd/tps65090.c
parentmfd: tps65090: add DT support for tps65090 (diff)
downloadlinux-dev-4f979ed5e2656570f433101bfc5bc116a919316b.tar.xz
linux-dev-4f979ed5e2656570f433101bfc5bc116a919316b.zip
mfd: tps65090: Pass irq domain when adding mfd sub devices
When device is get added through DT then irq_base is 0 (zero) and in this case regmap_irq_chip_get_base() generates warning. The interrupt of this device get added through irq_domain_add_linear() when irq_base is 0. Hence pass the irq domain in place of base_irq when calling mfd_add_devices(). Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65090.c')
-rw-r--r--drivers/mfd/tps65090.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index b49654587ce5..2ad0a1528650 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -204,7 +204,7 @@ static int tps65090_i2c_probe(struct i2c_client *client,
ret = mfd_add_devices(tps65090->dev, -1, tps65090s,
ARRAY_SIZE(tps65090s), NULL,
- regmap_irq_chip_get_base(tps65090->irq_data), NULL);
+ 0, regmap_irq_get_domain(tps65090->irq_data));
if (ret) {
dev_err(&client->dev, "add mfd devices failed with err: %d\n",
ret);