From: Johan Hovold Date: Wed, 10 Dec 2014 23:52:49 +0000 (-0800) Subject: rtc: omap: use dev_info X-Git-Tag: MMI-PSA29.97-13-9~11041^2~55 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=397b630a6757eb5c0adda115a1560c586957e2d8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rtc: omap: use dev_info Use dev_info rather than pr_info. Signed-off-by: Johan Hovold Cc: Alessandro Zummo Cc: Tony Lindgren Cc: Benot Cousson Cc: Lokesh Vutla Cc: Guenter Roeck Cc: Sekhar Nori Cc: Tero Kristo Cc: Keerthy J Tested-by: Felipe Balbi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index c750678de652..dbb88e46c25d 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c @@ -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);