mfd: tps65218: Make INT1 our status_base register
authorFelipe Balbi <balbi@ti.com>
Fri, 26 Dec 2014 19:28:21 +0000 (13:28 -0600)
committerLee Jones <lee.jones@linaro.org>
Tue, 20 Jan 2015 12:52:53 +0000 (12:52 +0000)
If we don't tell regmap-irq that our first status
register is at offset 1, it will try to read offset
zero, which is the chipid register.

Fixes: 44b4dc6 mfd: tps65218: Add driver for the TPS65218 PMIC
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65218.c

index 2243f758856091efdabdb4a59edc7fb4481209ef..d6b764349f9d309956b36fd270ae1b6940e8167c 100644 (file)
@@ -204,6 +204,7 @@ static struct regmap_irq_chip tps65218_irq_chip = {
 
        .num_regs = 2,
        .mask_base = TPS65218_REG_INT_MASK1,
+       .status_base = TPS65218_REG_INT1,
 };
 
 static const struct of_device_id of_tps65218_match_table[] = {