gpio_wdt.c (4f2d0b2d1b31cbe704c8f94e74e46cb64187ab0c) gpio_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782)
1/*
2 * Driver for watchdog device controlled through GPIO-line
3 *
4 * Author: 2013, Alexander Shiyan <shc_work@mail.ru>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

212 "always-running");
213
214 watchdog_set_drvdata(&priv->wdd, priv);
215
216 priv->wdd.info = &gpio_wdt_ident;
217 priv->wdd.ops = &gpio_wdt_ops;
218 priv->wdd.min_timeout = SOFT_TIMEOUT_MIN;
219 priv->wdd.max_timeout = SOFT_TIMEOUT_MAX;
1/*
2 * Driver for watchdog device controlled through GPIO-line
3 *
4 * Author: 2013, Alexander Shiyan <shc_work@mail.ru>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

212 "always-running");
213
214 watchdog_set_drvdata(&priv->wdd, priv);
215
216 priv->wdd.info = &gpio_wdt_ident;
217 priv->wdd.ops = &gpio_wdt_ops;
218 priv->wdd.min_timeout = SOFT_TIMEOUT_MIN;
219 priv->wdd.max_timeout = SOFT_TIMEOUT_MAX;
220 priv->wdd.parent = &pdev->dev;
220
221 if (watchdog_init_timeout(&priv->wdd, 0, &pdev->dev) < 0)
222 priv->wdd.timeout = SOFT_TIMEOUT_DEF;
223
224 setup_timer(&priv->timer, gpio_wdt_hwping, (unsigned long)&priv->wdd);
225
226 ret = watchdog_register_device(&priv->wdd);
227 if (ret)

--- 56 unchanged lines hidden ---
221
222 if (watchdog_init_timeout(&priv->wdd, 0, &pdev->dev) < 0)
223 priv->wdd.timeout = SOFT_TIMEOUT_DEF;
224
225 setup_timer(&priv->timer, gpio_wdt_hwping, (unsigned long)&priv->wdd);
226
227 ret = watchdog_register_device(&priv->wdd);
228 if (ret)

--- 56 unchanged lines hidden ---