hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/watchdog/ebc-c384_wdt.c
....@@ -2,15 +2,6 @@
22 /*
33 * Watchdog timer driver for the WinSystems EBC-C384
44 * 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.
145 */
156 #include <linux/device.h>
167 #include <linux/dmi.h>
....@@ -117,10 +108,7 @@
117108 wdd->max_timeout = WATCHDOG_MAX_TIMEOUT;
118109
119110 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);
124112
125113 return devm_watchdog_register_device(dev, wdd);
126114 }