diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-03-16 06:02:05 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-03-19 15:50:24 -0400 |
commit | 062836db01f982683e3c5bb6cbf571ee7a13016a (patch) | |
tree | 72b51448cc991ec117ea9f41993c8672ad0de371 | |
parent | 93619fdec96fa1cd19e5dffc5031cf4c63e6b431 (diff) |
power: reset: at91-poweroff: Switch from the pr_*() to the dev_*() logging functions
Use dev_info() instead of pr_info().
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-rw-r--r-- | drivers/power/reset/at91-poweroff.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c index c30c40193aaa..f8f88798cb66 100644 --- a/drivers/power/reset/at91-poweroff.c +++ b/drivers/power/reset/at91-poweroff.c | |||
@@ -55,10 +55,10 @@ static void __iomem *at91_shdwc_base; | |||
55 | static struct clk *sclk; | 55 | static struct clk *sclk; |
56 | static void __iomem *mpddrc_base; | 56 | static void __iomem *mpddrc_base; |
57 | 57 | ||
58 | static void __init at91_wakeup_status(void) | 58 | static void __init at91_wakeup_status(struct platform_device *pdev) |
59 | { | 59 | { |
60 | const char *reason; | ||
60 | u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR); | 61 | u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR); |
61 | char *reason = "unknown"; | ||
62 | 62 | ||
63 | /* Simple power-on, just bail out */ | 63 | /* Simple power-on, just bail out */ |
64 | if (!reg) | 64 | if (!reg) |
@@ -68,8 +68,10 @@ static void __init at91_wakeup_status(void) | |||
68 | reason = "RTT"; | 68 | reason = "RTT"; |
69 | else if (reg & AT91_SHDW_RTCWK) | 69 | else if (reg & AT91_SHDW_RTCWK) |
70 | reason = "RTC"; | 70 | reason = "RTC"; |
71 | else | ||
72 | reason = "unknown"; | ||
71 | 73 | ||
72 | pr_info("AT91: Wake-Up source: %s\n", reason); | 74 | dev_info(&pdev->dev, "Wake-Up source: %s\n", reason); |
73 | } | 75 | } |
74 | 76 | ||
75 | static void at91_poweroff(void) | 77 | static void at91_poweroff(void) |
@@ -172,7 +174,7 @@ static int __init at91_poweroff_probe(struct platform_device *pdev) | |||
172 | return ret; | 174 | return ret; |
173 | } | 175 | } |
174 | 176 | ||
175 | at91_wakeup_status(); | 177 | at91_wakeup_status(pdev); |
176 | 178 | ||
177 | if (pdev->dev.of_node) | 179 | if (pdev->dev.of_node) |
178 | at91_poweroff_dt_set_wakeup_mode(pdev); | 180 | at91_poweroff_dt_set_wakeup_mode(pdev); |