w1/slaves: use pr_* instead of printk
authorFjodor Schelichow <fjodor.schelichow@hotmail.com>
Thu, 19 Jun 2014 00:51:59 +0000 (02:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:46:51 +0000 (17:46 -0700)
This patch replaces all calls to the "printk" function within the "slaves"
subdirectory by calls to the appropriate "pr_*" function thus addressing
the following warning generated by the checkpatch script:

WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ...
        then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...

Signed-off-by: Fjodor Schelichow <fjodor.schelichow@hotmail.com>
Signed-off-by: Roman Sommer <romsom2@yahoo.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2760.c

index 65f90dccd60efa3074e8117a58e3f822b3e3c98f..d9079d48d1122c30fb6ca5d1948f829cd7024909 100644 (file)
@@ -181,8 +181,7 @@ static struct w1_family w1_ds2760_family = {
 
 static int __init w1_ds2760_init(void)
 {
-       printk(KERN_INFO "1-Wire driver for the DS2760 battery monitor "
-              " chip  - (c) 2004-2005, Szabolcs Gyurko\n");
+       pr_info("1-Wire driver for the DS2760 battery monitor chip - (c) 2004-2005, Szabolcs Gyurko\n");
        ida_init(&bat_ida);
        return w1_register_family(&w1_ds2760_family);
 }