.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
13 | 4 | */ |
---|
14 | 5 | |
---|
15 | 6 | #include <linux/acpi.h> |
---|
.. | .. |
---|
217 | 208 | wdd->parent = dev; |
---|
218 | 209 | watchdog_set_drvdata(wdd, wdt); |
---|
219 | 210 | 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); |
---|
223 | 212 | |
---|
224 | 213 | ret = watchdog_register_device(wdd); |
---|
225 | | - if (ret) { |
---|
226 | | - dev_err(dev, "failed to register watchdog\n"); |
---|
| 214 | + if (ret) |
---|
227 | 215 | return ret; |
---|
228 | | - } |
---|
229 | 216 | |
---|
230 | 217 | /* Switch from boot mode to user mode */ |
---|
231 | 218 | outb(NIWD_CONTROL_RESET | NIWD_CONTROL_MODE, |
---|