aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rtc/rtc-max77686.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c
index 9915cb96014b..9efe118a28ba 100644
--- a/drivers/rtc/rtc-max77686.c
+++ b/drivers/rtc/rtc-max77686.c
@@ -240,9 +240,9 @@ static int max77686_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
240 } 240 }
241 241
242 alrm->pending = 0; 242 alrm->pending = 0;
243 ret = regmap_read(info->max77686->regmap, MAX77686_REG_STATUS1, &val); 243 ret = regmap_read(info->max77686->regmap, MAX77686_REG_STATUS2, &val);
244 if (ret < 0) { 244 if (ret < 0) {
245 dev_err(info->dev, "%s:%d fail to read status1 reg(%d)\n", 245 dev_err(info->dev, "%s:%d fail to read status2 reg(%d)\n",
246 __func__, __LINE__, ret); 246 __func__, __LINE__, ret);
247 goto out; 247 goto out;
248 } 248 }