summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorFjodor Schelichow <fjodor.schelichow@hotmail.com>2014-06-19 02:51:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-19 17:46:51 -0700
commitea022eac1e297bbf725c1e484726b4c8fb09dd80 (patch)
treed18f381029d8f2486415f431b1510743c2006fe8 /drivers/w1
parent94859308a21b2bbf3d7c48789513c0c4a9ea7de1 (diff)
downloadlinux-stable-ea022eac1e297bbf725c1e484726b4c8fb09dd80.tar.gz
linux-stable-ea022eac1e297bbf725c1e484726b4c8fb09dd80.tar.bz2
linux-stable-ea022eac1e297bbf725c1e484726b4c8fb09dd80.zip
w1/slaves: use pr_* instead of printk
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>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/slaves/w1_ds2760.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/w1/slaves/w1_ds2760.c b/drivers/w1/slaves/w1_ds2760.c
index 65f90dccd60e..d9079d48d112 100644
--- a/drivers/w1/slaves/w1_ds2760.c
+++ b/drivers/w1/slaves/w1_ds2760.c
@@ -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);
}