|
@@ -185,8 +185,8 @@ static int pcf8583_rtc_read_time(struct device *dev, struct rtc_time *tm)
|
|
if (ctrl & (CTRL_STOP | CTRL_HOLD)) {
|
|
if (ctrl & (CTRL_STOP | CTRL_HOLD)) {
|
|
unsigned char new_ctrl = 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)
|
|
if ((err = pcf8583_set_ctrl(client, &new_ctrl)) < 0)
|
|
return err;
|
|
return err;
|