diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-09-01 10:11:19 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-09-01 12:40:44 -0400 |
commit | 405a72c5e78b5c560c8b2711d4000fa5eb063e1b (patch) | |
tree | 93292c8d42208deb0038e81935cd51cc3223d839 | |
parent | 94d450edfdc6dab0bb92dcbb06f5ea3244558bf4 (diff) |
power: reset: at91-poweroff: fix wakeup status register index
The wakeup status is read from Shutdown Status Register and not the
SHDW_CR which is the one at address 0.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | drivers/power/reset/at91-poweroff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c index 40bf42d146f1..c61000333bb9 100644 --- a/drivers/power/reset/at91-poweroff.c +++ b/drivers/power/reset/at91-poweroff.c | |||
@@ -51,7 +51,7 @@ static void __iomem *at91_shdwc_base; | |||
51 | 51 | ||
52 | static void __init at91_wakeup_status(void) | 52 | static void __init at91_wakeup_status(void) |
53 | { | 53 | { |
54 | u32 reg = readl(at91_shdwc_base); | 54 | u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR); |
55 | char *reason = "unknown"; | 55 | char *reason = "unknown"; |
56 | 56 | ||
57 | /* Simple power-on, just bail out */ | 57 | /* Simple power-on, just bail out */ |