mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
rtc: omap: use dev_info
Use dev_info rather than pr_info. Signed-off-by: Johan Hovold <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Benot Cousson <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Sekhar Nori <[email protected]> Cc: Tero Kristo <[email protected]> Cc: Keerthy J <[email protected]> Tested-by: Felipe Balbi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8777340a56
commit
397b630a67
1 changed files with 3 additions and 4 deletions
|
|
@ -427,8 +427,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
|
|||
/* clear old status */
|
||||
reg = rtc_read(OMAP_RTC_STATUS_REG);
|
||||
if (reg & (u8) OMAP_RTC_STATUS_POWER_UP) {
|
||||
pr_info("%s: RTC power up reset detected\n",
|
||||
pdev->name);
|
||||
dev_info(&pdev->dev, "RTC power up reset detected\n");
|
||||
rtc_write(OMAP_RTC_STATUS_POWER_UP, OMAP_RTC_STATUS_REG);
|
||||
}
|
||||
if (reg & (u8) OMAP_RTC_STATUS_ALARM)
|
||||
|
|
@ -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 */
|
||||
reg = rtc_read(OMAP_RTC_CTRL_REG);
|
||||
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 */
|
||||
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)
|
|||
*/
|
||||
|
||||
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)
|
||||
rtc_write(new_ctrl, OMAP_RTC_CTRL_REG);
|
||||
|
|
|
|||
Loading…
Reference in a new issue