summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rs5c313.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-02-22 01:45:29 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-22 02:22:29 +0100
commitaa161902ecae9ef55f8ec2190d2be7877402374d (patch)
tree9aaafa56dcce75c0662a9569ab663dcd0ea300b2 /drivers/rtc/rtc-rs5c313.c
parentrtc: rtc-at91rm9200: use dev_dbg()/dev_err() instead of printk()/pr_debug() (diff)
downloadlinux-aa161902ecae9ef55f8ec2190d2be7877402374d.tar.xz
linux-aa161902ecae9ef55f8ec2190d2be7877402374d.zip
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 '')
-rw-r--r--drivers/rtc/rtc-rs5c313.c5
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 @@
* 1.13 Nobuhiro Iwamatsu: Updata driver.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/module.h>
#include <linux/err.h>
#include <linux/rtc.h>
@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void)
tm.tm_year = 2000 - 1900;
rs5c313_rtc_set_time(NULL, &tm);
- printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to "
- "1 Jan 2000\n");
+ pr_err("invalid value, resetting to 1 Jan 2000\n");
}
RS5C313_CEDISABLE;
ndelay(700); /* CE:L */