mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
rtc: rtc-sun4v: use pr_warn() instead of printk()
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>
This commit is contained in:
parent
d75dcd3349
commit
d959f7319a
1 changed files with 6 additions and 4 deletions
|
@ -3,6 +3,8 @@
|
||||||
* Copyright (C) 2008 David S. Miller <davem@davemloft.net>
|
* Copyright (C) 2008 David S. Miller <davem@davemloft.net>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
@ -26,10 +28,10 @@ retry:
|
||||||
udelay(100);
|
udelay(100);
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
printk(KERN_WARNING "SUN4V: tod_get() timed out.\n");
|
pr_warn("tod_get() timed out.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
printk(KERN_WARNING "SUN4V: tod_get() not supported.\n");
|
pr_warn("tod_get() not supported.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,10 +55,10 @@ retry:
|
||||||
udelay(100);
|
udelay(100);
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
printk(KERN_WARNING "SUN4V: tod_set() timed out.\n");
|
pr_warn("tod_set() timed out.\n");
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
printk(KERN_WARNING "SUN4V: tod_set() not supported.\n");
|
pr_warn("tod_set() not supported.\n");
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue