Skip to content

Commit

Permalink
rtc: max77686: use dev_info() instead of printk()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jingoo Han authored and torvalds committed Feb 22, 2013
1 parent c100a5e commit 3cebeb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3cebeb5

Please sign in to comment.