Skip to content

Commit

Permalink
mfd: tps65218: Make INT1 our status_base register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi authored and Lee Jones committed Jan 20, 2015
1 parent 773328d commit f29ae36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/tps65218.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit f29ae36

Please sign in to comment.