txx9wdt.c (4ba24fef3eb3b142197135223b90ced2f319cd53) txx9wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782)
1/*
2 * txx9wdt: A Hardware Watchdog Driver for TXx9 SoCs
3 *
4 * Copyright (C) 2007 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
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 version 2 as
8 * published by the Free Software Foundation.

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

126 goto exit;
127 }
128
129 if (timeout < 1 || timeout > WD_MAX_TIMEOUT)
130 timeout = TIMER_MARGIN;
131 txx9wdt.timeout = timeout;
132 txx9wdt.min_timeout = 1;
133 txx9wdt.max_timeout = WD_MAX_TIMEOUT;
1/*
2 * txx9wdt: A Hardware Watchdog Driver for TXx9 SoCs
3 *
4 * Copyright (C) 2007 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
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 version 2 as
8 * published by the Free Software Foundation.

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

126 goto exit;
127 }
128
129 if (timeout < 1 || timeout > WD_MAX_TIMEOUT)
130 timeout = TIMER_MARGIN;
131 txx9wdt.timeout = timeout;
132 txx9wdt.min_timeout = 1;
133 txx9wdt.max_timeout = WD_MAX_TIMEOUT;
134 txx9wdt.parent = &dev->dev;
134 watchdog_set_nowayout(&txx9wdt, nowayout);
135
136 ret = watchdog_register_device(&txx9wdt);
137 if (ret)
138 goto exit;
139
140 pr_info("Hardware Watchdog Timer: timeout=%d sec (max %ld) (nowayout= %d)\n",
141 timeout, WD_MAX_TIMEOUT, nowayout);

--- 36 unchanged lines hidden ---
135 watchdog_set_nowayout(&txx9wdt, nowayout);
136
137 ret = watchdog_register_device(&txx9wdt);
138 if (ret)
139 goto exit;
140
141 pr_info("Hardware Watchdog Timer: timeout=%d sec (max %ld) (nowayout= %d)\n",
142 timeout, WD_MAX_TIMEOUT, nowayout);

--- 36 unchanged lines hidden ---