]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
rtc: rtc-vr41xx: use dev_info() instead of printk()
authorJingoo Han <jg1.han@samsung.com>
Fri, 22 Feb 2013 00:45:30 +0000 (16:45 -0800)
committerLinus 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-vr41xx.c

index 6c3774cf5a2461fdfb7168885fbf55f783df79b2..f91be04b90508e3ede7791a5257ae251a120da2a 100644 (file)
@@ -352,7 +352,7 @@ static int rtc_probe(struct platform_device *pdev)
        disable_irq(aie_irq);
        disable_irq(pie_irq);
 
-       printk(KERN_INFO "rtc: Real Time Clock of NEC VR4100 series\n");
+       dev_info(&pdev->dev, "Real Time Clock of NEC VR4100 series\n");
 
        return 0;