projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c100a5e
)
rtc: max77686: use dev_info() instead of printk()
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 22 Feb 2013 00:45:24 +0000
(16:45 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:29 +0000
(17:22 -0800)
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>
drivers/rtc/rtc-max77686.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-max77686.c
b/drivers/rtc/rtc-max77686.c
index 8ab56b00e6930101a224eb3afa26aa71beceb47b..6b1337f9baf46b355507a97f83492170ab42521a 100644
(file)
--- a/
drivers/rtc/rtc-max77686.c
+++ b/
drivers/rtc/rtc-max77686.c
@@
-503,7
+503,7
@@
static int max77686_rtc_probe(struct platform_device *pdev)
struct max77686_rtc_info *info;
int ret, virq;
-
printk(KERN_INFO
"%s\n", __func__);
+
dev_info(&pdev->dev,
"%s\n", __func__);
info = kzalloc(sizeof(struct max77686_rtc_info), GFP_KERNEL);
if (!info)
@@
-542,7
+542,7
@@
static int max77686_rtc_probe(struct platform_device *pdev)
&max77686_rtc_ops, THIS_MODULE);
if (IS_ERR(info->rtc_dev)) {
-
printk(KERN_INFO
"%s: fail\n", __func__);
+
dev_info(&pdev->dev,
"%s: fail\n", __func__);
ret = PTR_ERR(info->rtc_dev);
dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);