diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 19:45:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:29 -0500 |
commit | aa161902ecae9ef55f8ec2190d2be7877402374d (patch) | |
tree | 9aaafa56dcce75c0662a9569ab663dcd0ea300b2 /drivers/rtc | |
parent | 6588208cb2be4ab05e9dc0d1f5879eacf3dbcd1c (diff) |
rtc: rtc-rs5c313: use pr_err() instead of printk()
Fix the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-rs5c313.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index d1aee793ecc8..d98ea5b759c8 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c | |||
@@ -39,6 +39,8 @@ | |||
39 | * 1.13 Nobuhiro Iwamatsu: Updata driver. | 39 | * 1.13 Nobuhiro Iwamatsu: Updata driver. |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
43 | |||
42 | #include <linux/module.h> | 44 | #include <linux/module.h> |
43 | #include <linux/err.h> | 45 | #include <linux/err.h> |
44 | #include <linux/rtc.h> | 46 | #include <linux/rtc.h> |
@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void) | |||
352 | tm.tm_year = 2000 - 1900; | 354 | tm.tm_year = 2000 - 1900; |
353 | 355 | ||
354 | rs5c313_rtc_set_time(NULL, &tm); | 356 | rs5c313_rtc_set_time(NULL, &tm); |
355 | printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to " | 357 | pr_err("invalid value, resetting to 1 Jan 2000\n"); |
356 | "1 Jan 2000\n"); | ||
357 | } | 358 | } |
358 | RS5C313_CEDISABLE; | 359 | RS5C313_CEDISABLE; |
359 | ndelay(700); /* CE:L */ | 360 | ndelay(700); /* CE:L */ |