From: Nicolas Ferre Date: Mon, 1 Sep 2014 14:11:19 +0000 (+0200) Subject: power: reset: at91-poweroff: fix wakeup status register index X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=405a72c5e78b5c560c8b2711d4000fa5eb063e1b;p=linux-beck.git 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 --- 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 */