Commit 84d70ee7 authored by Yadwinder Singh Brar's avatar Yadwinder Singh Brar Committed by Samuel Ortiz

mfd: Use pmic regmap to read max77686 pmic interrupt register

PMIC's regmap should be used to read pmic interrupt registers.
Signed-off-by: default avatarYadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 17ffba6a
......@@ -180,7 +180,7 @@ static irqreturn_t max77686_irq_thread(int irq, void *data)
pr_info("%s: irq_src=0x%x\n", __func__, irq_src);
if (irq_src == MAX77686_IRQSRC_PMIC) {
ret = regmap_bulk_read(max77686->rtc_regmap,
ret = regmap_bulk_read(max77686->regmap,
MAX77686_REG_INT1, irq_reg, 2);
if (ret < 0) {
dev_err(max77686->dev, "Failed to read interrupt source: %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment