diff options
author | Yadwinder Singh Brar <yadi.brar01@gmail.com> | 2012-07-04 23:58:20 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-09 09:13:41 -0400 |
commit | 84d70ee78bb0c3d8d1d8df74565d010e2e3c31a9 (patch) | |
tree | 6d9d4e3fe709b19c1da86ee0cbc2cf834bed1ca0 /drivers/mfd/max77686-irq.c | |
parent | 17ffba6ad235cf9c21937ee1343df0d0fb2371fa (diff) |
mfd: Use pmic regmap to read max77686 pmic interrupt register
PMIC's regmap should be used to read pmic interrupt registers.
Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max77686-irq.c')
-rw-r--r-- | drivers/mfd/max77686-irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max77686-irq.c b/drivers/mfd/max77686-irq.c index fc101220f990..09e593ad07b5 100644 --- a/drivers/mfd/max77686-irq.c +++ b/drivers/mfd/max77686-irq.c | |||
@@ -180,7 +180,7 @@ static irqreturn_t max77686_irq_thread(int irq, void *data) | |||
180 | pr_info("%s: irq_src=0x%x\n", __func__, irq_src); | 180 | pr_info("%s: irq_src=0x%x\n", __func__, irq_src); |
181 | 181 | ||
182 | if (irq_src == MAX77686_IRQSRC_PMIC) { | 182 | if (irq_src == MAX77686_IRQSRC_PMIC) { |
183 | ret = regmap_bulk_read(max77686->rtc_regmap, | 183 | ret = regmap_bulk_read(max77686->regmap, |
184 | MAX77686_REG_INT1, irq_reg, 2); | 184 | MAX77686_REG_INT1, irq_reg, 2); |
185 | if (ret < 0) { | 185 | if (ret < 0) { |
186 | dev_err(max77686->dev, "Failed to read interrupt source: %d\n", | 186 | dev_err(max77686->dev, "Failed to read interrupt source: %d\n", |