mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
Signed-off-by: Roman Sommer <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
94859308a2
commit
ea022eac1e
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue