提交 aa161902 编写于 作者: J Jingoo Han 提交者: Linus Torvalds

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: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6588208c
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
* 1.13 Nobuhiro Iwamatsu: Updata driver. * 1.13 Nobuhiro Iwamatsu: Updata driver.
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/rtc.h> #include <linux/rtc.h>
...@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void) ...@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void)
tm.tm_year = 2000 - 1900; tm.tm_year = 2000 - 1900;
rs5c313_rtc_set_time(NULL, &tm); rs5c313_rtc_set_time(NULL, &tm);
printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to " pr_err("invalid value, resetting to 1 Jan 2000\n");
"1 Jan 2000\n");
} }
RS5C313_CEDISABLE; RS5C313_CEDISABLE;
ndelay(700); /* CE:L */ ndelay(700); /* CE:L */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册