Commit 397b630a authored by Johan Hovold's avatar Johan Hovold Committed by Linus Torvalds

rtc: omap: use dev_info

Use dev_info rather than pr_info.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Benot Cousson <bcousson@baylibre.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Keerthy J <j-keerthy@ti.com>
Tested-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8777340a
...@@ -427,8 +427,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev) ...@@ -427,8 +427,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
/* clear old status */ /* clear old status */
reg = rtc_read(OMAP_RTC_STATUS_REG); reg = rtc_read(OMAP_RTC_STATUS_REG);
if (reg & (u8) OMAP_RTC_STATUS_POWER_UP) { if (reg & (u8) OMAP_RTC_STATUS_POWER_UP) {
pr_info("%s: RTC power up reset detected\n", dev_info(&pdev->dev, "RTC power up reset detected\n");
pdev->name);
rtc_write(OMAP_RTC_STATUS_POWER_UP, OMAP_RTC_STATUS_REG); rtc_write(OMAP_RTC_STATUS_POWER_UP, OMAP_RTC_STATUS_REG);
} }
if (reg & (u8) OMAP_RTC_STATUS_ALARM) if (reg & (u8) OMAP_RTC_STATUS_ALARM)
...@@ -437,7 +436,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev) ...@@ -437,7 +436,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
/* On boards with split power, RTC_ON_NOFF won't reset the RTC */ /* On boards with split power, RTC_ON_NOFF won't reset the RTC */
reg = rtc_read(OMAP_RTC_CTRL_REG); reg = rtc_read(OMAP_RTC_CTRL_REG);
if (reg & (u8) OMAP_RTC_CTRL_STOP) if (reg & (u8) OMAP_RTC_CTRL_STOP)
pr_info("%s: already running\n", pdev->name); dev_info(&pdev->dev, "already running\n");
/* force to 24 hour mode */ /* force to 24 hour mode */
new_ctrl = reg & (OMAP_RTC_CTRL_SPLIT|OMAP_RTC_CTRL_AUTO_COMP); new_ctrl = reg & (OMAP_RTC_CTRL_SPLIT|OMAP_RTC_CTRL_AUTO_COMP);
...@@ -458,7 +457,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev) ...@@ -458,7 +457,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
*/ */
if (new_ctrl & (u8) OMAP_RTC_CTRL_SPLIT) if (new_ctrl & (u8) OMAP_RTC_CTRL_SPLIT)
pr_info("%s: split power mode\n", pdev->name); dev_info(&pdev->dev, "split power mode\n");
if (reg != new_ctrl) if (reg != new_ctrl)
rtc_write(new_ctrl, OMAP_RTC_CTRL_REG); rtc_write(new_ctrl, OMAP_RTC_CTRL_REG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment