From: David Cohen Date: Mon, 5 Oct 2015 23:49:58 +0000 (-0700) Subject: watchdog: intel-mid: add Magic Closure flag X-Git-Tag: KARO-TX6UL-2015-11-03~65^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8cbb97ea3e386eb95ecbd99260d681792963cebf;p=karo-tx-linux.git watchdog: intel-mid: add Magic Closure flag Adding WDIOF_MAGICCLOSE to Intel MID watchdog driver. Once the watchdog is opened, it makes sense to disable watchdog only if it was gracefully released. Signed-off-by: David Cohen Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c index 0a436b5d1e84..db36d12e2b52 100644 --- a/drivers/watchdog/intel-mid_wdt.c +++ b/drivers/watchdog/intel-mid_wdt.c @@ -101,7 +101,7 @@ static irqreturn_t mid_wdt_irq(int irq, void *dev_id) static const struct watchdog_info mid_wdt_info = { .identity = "Intel MID SCU watchdog", - .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT, + .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE, }; static const struct watchdog_ops mid_wdt_ops = {