summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cohen <david.a.cohen@linux.intel.com>2015-10-06 10:53:22 -0700
committerBrian Wood <brian.j.wood@intel.com>2015-10-06 10:53:22 -0700
commitd9c7b6e6842c49936f3dec06b4d6962ed4874f78 (patch)
tree1d0b730e44dbb7ddd0e12e48fc6453e209963af3
parent03d203d5ff5307e20811805983d96c208accad99 (diff)
downloadintel-d9c7b6e6842c49936f3dec06b4d6962ed4874f78.tar.gz
wdt: 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. Change-Id: Ifd74535802952c7d600273746f444e74b434ad14 Signed-off-by: Brian Wood <brian.j.wood@intel.com>
-rw-r--r--drivers/watchdog/intel-mid_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c
index ca66e8e7463..e12243c2d03 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 = {