hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/nic7018_wdt.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2016 National Instruments Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
134 */
145
156 #include <linux/acpi.h>
....@@ -211,10 +202,7 @@
211202
212203 watchdog_set_drvdata(wdd, wdt);
213204 watchdog_set_nowayout(wdd, nowayout);
214
-
215
- ret = watchdog_init_timeout(wdd, timeout, dev);
216
- if (ret)
217
- dev_warn(dev, "unable to set timeout value, using default\n");
205
+ watchdog_init_timeout(wdd, timeout, dev);
218206
219207 /* Unlock WDT register */
220208 outb(UNLOCK, wdt->io_base + WDT_REG_LOCK);
....@@ -222,7 +210,6 @@
222210 ret = watchdog_register_device(wdd);
223211 if (ret) {
224212 outb(LOCK, wdt->io_base + WDT_REG_LOCK);
225
- dev_err(dev, "failed to register watchdog\n");
226213 return ret;
227214 }
228215