diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 19:45:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:29 -0500 |
commit | d959f7319adf58e4bfcada15cc088941dee79f36 (patch) | |
tree | 8f3f7ddccb20bf316209a60229e4a80660d6c9f8 /drivers/rtc/rtc-sun4v.c | |
parent | d75dcd3349a4e0916cec37e7b838c83c95b9fa95 (diff) |
rtc: rtc-sun4v: use pr_warn() 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/rtc-sun4v.c')
-rw-r--r-- | drivers/rtc/rtc-sun4v.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-sun4v.c b/drivers/rtc/rtc-sun4v.c index 5b2261052a65..59b5c2dcb58c 100644 --- a/drivers/rtc/rtc-sun4v.c +++ b/drivers/rtc/rtc-sun4v.c | |||
@@ -3,6 +3,8 @@ | |||
3 | * Copyright (C) 2008 David S. Miller <davem@davemloft.net> | 3 | * Copyright (C) 2008 David S. Miller <davem@davemloft.net> |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
7 | |||
6 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
7 | #include <linux/module.h> | 9 | #include <linux/module.h> |
8 | #include <linux/delay.h> | 10 | #include <linux/delay.h> |
@@ -26,10 +28,10 @@ retry: | |||
26 | udelay(100); | 28 | udelay(100); |
27 | goto retry; | 29 | goto retry; |
28 | } | 30 | } |
29 | printk(KERN_WARNING "SUN4V: tod_get() timed out.\n"); | 31 | pr_warn("tod_get() timed out.\n"); |
30 | return 0; | 32 | return 0; |
31 | } | 33 | } |
32 | printk(KERN_WARNING "SUN4V: tod_get() not supported.\n"); | 34 | pr_warn("tod_get() not supported.\n"); |
33 | return 0; | 35 | return 0; |
34 | } | 36 | } |
35 | 37 | ||
@@ -53,10 +55,10 @@ retry: | |||
53 | udelay(100); | 55 | udelay(100); |
54 | goto retry; | 56 | goto retry; |
55 | } | 57 | } |
56 | printk(KERN_WARNING "SUN4V: tod_set() timed out.\n"); | 58 | pr_warn("tod_set() timed out.\n"); |
57 | return -EAGAIN; | 59 | return -EAGAIN; |
58 | } | 60 | } |
59 | printk(KERN_WARNING "SUN4V: tod_set() not supported.\n"); | 61 | pr_warn("tod_set() not supported.\n"); |
60 | return -EOPNOTSUPP; | 62 | return -EOPNOTSUPP; |
61 | } | 63 | } |
62 | 64 | ||