.. | .. |
---|
2 | 2 | /* |
---|
3 | 3 | * Watchdog timer driver for the WinSystems EBC-C384 |
---|
4 | 4 | * Copyright (C) 2016 William Breathitt Gray |
---|
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. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, but |
---|
11 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | | - * General Public License for more details. |
---|
14 | 5 | */ |
---|
15 | 6 | #include <linux/device.h> |
---|
16 | 7 | #include <linux/dmi.h> |
---|
.. | .. |
---|
117 | 108 | wdd->max_timeout = WATCHDOG_MAX_TIMEOUT; |
---|
118 | 109 | |
---|
119 | 110 | watchdog_set_nowayout(wdd, nowayout); |
---|
120 | | - |
---|
121 | | - if (watchdog_init_timeout(wdd, timeout, dev)) |
---|
122 | | - dev_warn(dev, "Invalid timeout (%u seconds), using default (%u seconds)\n", |
---|
123 | | - timeout, WATCHDOG_TIMEOUT); |
---|
| 111 | + watchdog_init_timeout(wdd, timeout, dev); |
---|
124 | 112 | |
---|
125 | 113 | return devm_watchdog_register_device(dev, wdd); |
---|
126 | 114 | } |
---|