summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf8583.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-02-21 16:45:33 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 17:22:29 -0800
commit79d134058f15e25c6b6724704a8f046c2ff6c1f9 (patch)
tree437ecbcf0a485d48e9a7621d5fe63e4f73894a8e /drivers/rtc/rtc-pcf8583.c
parentd959f7319adf58e4bfcada15cc088941dee79f36 (diff)
downloadop-kernel-dev-79d134058f15e25c6b6724704a8f046c2ff6c1f9.zip
op-kernel-dev-79d134058f15e25c6b6724704a8f046c2ff6c1f9.tar.gz
rtc: rtc-pcf8583: use dev_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>
Diffstat (limited to 'drivers/rtc/rtc-pcf8583.c')
-rw-r--r--drivers/rtc/rtc-pcf8583.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-pcf8583.c b/drivers/rtc/rtc-pcf8583.c
index 3415b8f..5f97c61 100644
--- a/drivers/rtc/rtc-pcf8583.c
+++ b/drivers/rtc/rtc-pcf8583.c
@@ -185,8 +185,8 @@ static int pcf8583_rtc_read_time(struct device *dev, struct rtc_time *tm)
if (ctrl & (CTRL_STOP | CTRL_HOLD)) {
unsigned char new_ctrl = ctrl & ~(CTRL_STOP | CTRL_HOLD);
- printk(KERN_WARNING "RTC: resetting control %02x -> %02x\n",
- ctrl, new_ctrl);
+ dev_warn(dev, "resetting control %02x -> %02x\n",
+ ctrl, new_ctrl);
if ((err = pcf8583_set_ctrl(client, &new_ctrl)) < 0)
return err;
OpenPOWER on IntegriCloud