drivers/rtc/rtc-max77686.c: use dev_info()/dev_emerg() instead of pr_info()/pr_emerg()
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 23:18:32 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:22 +0000 (18:28 -0700)
dev_info()/dev_emerg() are preferred to pr_info()/pr_emerg().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-max77686.c

index 9de93e72a18acbb41e4e65aa38dd440ea1f16d23..df66babfc157e305f1c9b11ada6b69988efa3075 100644 (file)
@@ -466,7 +466,7 @@ static void max77686_rtc_enable_smpl(struct max77686_rtc_info *info, bool enable
 
        val = 0;
        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 */
 
@@ -589,11 +589,14 @@ static void max77686_rtc_shutdown(struct platform_device *pdev)
        for (i = 0; i < 3; i++) {
                max77686_rtc_enable_wtsr(info, false);
                regmap_read(info->max77686->rtc_regmap, MAX77686_WTSR_SMPL_CNTL, &val);
-               pr_info("%s: WTSR_SMPL reg(0x%02x)\n", __func__, val);
-               if (val & WTSR_EN_MASK)
-                       pr_emerg("%s: fail to disable WTSR\n", __func__);
-               else {
-                       pr_info("%s: success to disable WTSR\n", __func__);
+               dev_info(info->dev, "%s: WTSR_SMPL reg(0x%02x)\n", __func__,
+                               val);
+               if (val & WTSR_EN_MASK) {
+                       dev_emerg(info->dev, "%s: fail to disable WTSR\n",
+                                       __func__);
+               } else {
+                       dev_info(info->dev, "%s: success to disable WTSR\n",
+                                       __func__);
                        break;
                }
        }