Commit e2bf1151 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds

drivers/rtc/rtc-max77686.c: use dev_info()/dev_emerg() instead of pr_info()/pr_emerg()

dev_info()/dev_emerg() are preferred to pr_info()/pr_emerg().
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ac60bf31
...@@ -466,7 +466,7 @@ static void max77686_rtc_enable_smpl(struct max77686_rtc_info *info, bool enable ...@@ -466,7 +466,7 @@ static void max77686_rtc_enable_smpl(struct max77686_rtc_info *info, bool enable
val = 0; val = 0;
regmap_read(info->max77686->rtc_regmap, MAX77686_WTSR_SMPL_CNTL, &val); regmap_read(info->max77686->rtc_regmap, MAX77686_WTSR_SMPL_CNTL, &val);
pr_info("%s: WTSR_SMPL(0x%02x)\n", __func__, val); dev_info(info->dev, "%s: WTSR_SMPL(0x%02x)\n", __func__, val);
} }
#endif /* MAX77686_RTC_WTSR_SMPL */ #endif /* MAX77686_RTC_WTSR_SMPL */
...@@ -589,11 +589,14 @@ static void max77686_rtc_shutdown(struct platform_device *pdev) ...@@ -589,11 +589,14 @@ static void max77686_rtc_shutdown(struct platform_device *pdev)
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
max77686_rtc_enable_wtsr(info, false); max77686_rtc_enable_wtsr(info, false);
regmap_read(info->max77686->rtc_regmap, MAX77686_WTSR_SMPL_CNTL, &val); regmap_read(info->max77686->rtc_regmap, MAX77686_WTSR_SMPL_CNTL, &val);
pr_info("%s: WTSR_SMPL reg(0x%02x)\n", __func__, val); dev_info(info->dev, "%s: WTSR_SMPL reg(0x%02x)\n", __func__,
if (val & WTSR_EN_MASK) val);
pr_emerg("%s: fail to disable WTSR\n", __func__); if (val & WTSR_EN_MASK) {
else { dev_emerg(info->dev, "%s: fail to disable WTSR\n",
pr_info("%s: success to disable WTSR\n", __func__); __func__);
} else {
dev_info(info->dev, "%s: success to disable WTSR\n",
__func__);
break; break;
} }
} }
......
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