aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-max77686.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-02-21 19:45:24 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 20:22:29 -0500
commit3cebeb53d921c2079be0f1bf20f8cae68c20ecc0 (patch)
tree20c4aaed88fe5c155b73ba323186675d4d76be49 /drivers/rtc/rtc-max77686.c
parentc100a5e0255777c783646791e98434f300a94c4c (diff)
rtc: max77686: use dev_info() 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-max77686.c')
-rw-r--r--drivers/rtc/rtc-max77686.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c
index 8ab56b00e693..6b1337f9baf4 100644
--- 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)
503 struct max77686_rtc_info *info; 503 struct max77686_rtc_info *info;
504 int ret, virq; 504 int ret, virq;
505 505
506 printk(KERN_INFO "%s\n", __func__); 506 dev_info(&pdev->dev, "%s\n", __func__);
507 507
508 info = kzalloc(sizeof(struct max77686_rtc_info), GFP_KERNEL); 508 info = kzalloc(sizeof(struct max77686_rtc_info), GFP_KERNEL);
509 if (!info) 509 if (!info)
@@ -542,7 +542,7 @@ static int max77686_rtc_probe(struct platform_device *pdev)
542 &max77686_rtc_ops, THIS_MODULE); 542 &max77686_rtc_ops, THIS_MODULE);
543 543
544 if (IS_ERR(info->rtc_dev)) { 544 if (IS_ERR(info->rtc_dev)) {
545 printk(KERN_INFO "%s: fail\n", __func__); 545 dev_info(&pdev->dev, "%s: fail\n", __func__);
546 546
547 ret = PTR_ERR(info->rtc_dev); 547 ret = PTR_ERR(info->rtc_dev);
548 dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); 548 dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);