X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fsa1100_wdt.c;h=31a48437dc3dba2ce22ba5ae8aef3ce72d1b7c71;hb=a491913ff22c2b69d937d14296db6fa34dbff068;hp=27d6898a7c983f8f987a6dc584be8ea4f099b160;hpb=b80b601f0087391e55d3859e70f08278632b1185;p=linux-2.6-omap-h63xx.git diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c index 27d6898a7c9..31a48437dc3 100644 --- a/drivers/watchdog/sa1100_wdt.c +++ b/drivers/watchdog/sa1100_wdt.c @@ -29,10 +29,11 @@ #include #ifdef CONFIG_ARCH_PXA -#include +#include #endif -#include +#include +#include #define OSCR_FREQ CLOCK_TICK_RATE @@ -159,7 +160,8 @@ static int __init sa1100dog_init(void) * we suspend, RCSR will be cleared, and the watchdog * reset reason will be lost. */ - boot_status = (RCSR & RCSR_WDR) ? WDIOF_CARDRESET : 0; + boot_status = (reset_status & RESET_STATUS_WATCHDOG) ? + WDIOF_CARDRESET : 0; pre_margin = OSCR_FREQ * margin; ret = misc_register(&sa1100dog_miscdev);