]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: rtc-vr41xx: use dev_info() instead of printk()
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:15:50 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:30 +0000 (16:53 +1100)
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>
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;