retu_wdt.c (f01387d2693813eb5271a3448e6a082322c7d75d) retu_wdt.c (fb1cbeaeed0f41965ead2714bfc9c579188c6146)
1/*
2 * Retu watchdog driver
3 *
4 * Copyright (C) 2004, 2005 Nokia Corporation
5 *
6 * Based on code written by Amit Kucheria and Michael Buesch.
7 * Rewritten by Aaro Koskinen.
8 *

--- 80 unchanged lines hidden (view full) ---

89{
90 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog);
91
92 wdog->timeout = timeout;
93 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout);
94}
95
96static const struct watchdog_info retu_wdt_info = {
1/*
2 * Retu watchdog driver
3 *
4 * Copyright (C) 2004, 2005 Nokia Corporation
5 *
6 * Based on code written by Amit Kucheria and Michael Buesch.
7 * Rewritten by Aaro Koskinen.
8 *

--- 80 unchanged lines hidden (view full) ---

89{
90 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog);
91
92 wdog->timeout = timeout;
93 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout);
94}
95
96static const struct watchdog_info retu_wdt_info = {
97 .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
97 .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
98 .identity = "Retu watchdog",
99};
100
101static const struct watchdog_ops retu_wdt_ops = {
102 .owner = THIS_MODULE,
103 .start = retu_wdt_start,
104 .stop = retu_wdt_stop,
105 .ping = retu_wdt_ping,

--- 72 unchanged lines hidden ---
98 .identity = "Retu watchdog",
99};
100
101static const struct watchdog_ops retu_wdt_ops = {
102 .owner = THIS_MODULE,
103 .start = retu_wdt_start,
104 .stop = retu_wdt_stop,
105 .ping = retu_wdt_ping,

--- 72 unchanged lines hidden ---