X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fsa1100_wdt.c;h=97d9da758dccd7a0977ffea9d93ec0938f4b749b;hb=afd2fc02ab7bae6062671c5ca80dd34c34a63fb7;hp=52a533c274fdda2afc785e00af1af6f76ffa7637;hpb=1f4de5a0e3b4a4b8afa2cddb46429d32e1053c14;p=deliverable%2Flinux.git diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c index 52a533c274fd..97d9da758dcc 100644 --- a/drivers/watchdog/sa1100_wdt.c +++ b/drivers/watchdog/sa1100_wdt.c @@ -31,6 +31,7 @@ #include #endif +#include #include #include @@ -162,7 +163,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);