.. | .. |
---|
| 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> |
---|
.. | .. |
---|
211 | 202 | |
---|
212 | 203 | watchdog_set_drvdata(wdd, wdt); |
---|
213 | 204 | 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); |
---|
218 | 206 | |
---|
219 | 207 | /* Unlock WDT register */ |
---|
220 | 208 | outb(UNLOCK, wdt->io_base + WDT_REG_LOCK); |
---|
.. | .. |
---|
222 | 210 | ret = watchdog_register_device(wdd); |
---|
223 | 211 | if (ret) { |
---|
224 | 212 | outb(LOCK, wdt->io_base + WDT_REG_LOCK); |
---|
225 | | - dev_err(dev, "failed to register watchdog\n"); |
---|
226 | 213 | return ret; |
---|
227 | 214 | } |
---|
228 | 215 | |
---|