Skip to content

Commit

Permalink
power: reset: at91-poweroff: fix wakeup status register index
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Ferre committed Sep 1, 2014
1 parent 94d450e commit 405a72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/reset/at91-poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 405a72c

Please sign in to comment.