hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/ni903x_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>
....@@ -217,15 +208,11 @@
217208 wdd->parent = dev;
218209 watchdog_set_drvdata(wdd, wdt);
219210 watchdog_set_nowayout(wdd, nowayout);
220
- ret = watchdog_init_timeout(wdd, timeout, dev);
221
- if (ret)
222
- dev_err(dev, "unable to set timeout value, using default\n");
211
+ watchdog_init_timeout(wdd, timeout, dev);
223212
224213 ret = watchdog_register_device(wdd);
225
- if (ret) {
226
- dev_err(dev, "failed to register watchdog\n");
214
+ if (ret)
227215 return ret;
228
- }
229216
230217 /* Switch from boot mode to user mode */
231218 outb(NIWD_CONTROL_RESET | NIWD_CONTROL_MODE,