Commit 062836db authored by Ladislav Michl's avatar Ladislav Michl Committed by Sebastian Reichel

power: reset: at91-poweroff: Switch from the pr_*() to the dev_*() logging functions

Use dev_info() instead of pr_info().
Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 93619fde
...@@ -55,10 +55,10 @@ static void __iomem *at91_shdwc_base; ...@@ -55,10 +55,10 @@ static void __iomem *at91_shdwc_base;
static struct clk *sclk; static struct clk *sclk;
static void __iomem *mpddrc_base; static void __iomem *mpddrc_base;
static void __init at91_wakeup_status(void) static void __init at91_wakeup_status(struct platform_device *pdev)
{ {
const char *reason;
u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR); u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR);
char *reason = "unknown";
/* Simple power-on, just bail out */ /* Simple power-on, just bail out */
if (!reg) if (!reg)
...@@ -68,8 +68,10 @@ static void __init at91_wakeup_status(void) ...@@ -68,8 +68,10 @@ static void __init at91_wakeup_status(void)
reason = "RTT"; reason = "RTT";
else if (reg & AT91_SHDW_RTCWK) else if (reg & AT91_SHDW_RTCWK)
reason = "RTC"; reason = "RTC";
else
reason = "unknown";
pr_info("AT91: Wake-Up source: %s\n", reason); dev_info(&pdev->dev, "Wake-Up source: %s\n", reason);
} }
static void at91_poweroff(void) static void at91_poweroff(void)
...@@ -172,7 +174,7 @@ static int __init at91_poweroff_probe(struct platform_device *pdev) ...@@ -172,7 +174,7 @@ static int __init at91_poweroff_probe(struct platform_device *pdev)
return ret; return ret;
} }
at91_wakeup_status(); at91_wakeup_status(pdev);
if (pdev->dev.of_node) if (pdev->dev.of_node)
at91_poweroff_dt_set_wakeup_mode(pdev); at91_poweroff_dt_set_wakeup_mode(pdev);
......
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