diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-09-01 16:11:19 +0200 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-09-01 18:40:44 +0200 |
commit | 405a72c5e78b5c560c8b2711d4000fa5eb063e1b (patch) | |
tree | 93292c8d42208deb0038e81935cd51cc3223d839 /drivers/power | |
parent | 94d450edfdc6dab0bb92dcbb06f5ea3244558bf4 (diff) | |
download | linux-405a72c5e78b5c560c8b2711d4000fa5eb063e1b.tar.bz2 |
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>
Diffstat (limited to 'drivers/power')
-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; static void __init at91_wakeup_status(void) { - u32 reg = readl(at91_shdwc_base); + u32 reg = readl(at91_shdwc_base + AT91_SHDW_SR); char *reason = "unknown"; /* Simple power-on, just bail out */ |