treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
[sfrench/cifs-2.6.git] / drivers / watchdog / ziirave_wdt.c
index d3594aa3a3743dea1f67878a38bee4d75d43ce85..dec660c509b39b5d40e0317760413f3469df6164 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2015 Zodiac Inflight Innovations
  *
@@ -6,16 +7,6 @@
  * Based on twl4030_wdt.c by Timo Kokkonen <timo.t.kokkonen at nokia.com>:
  *
  * Copyright (C) Nokia Corporation
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
  */
 
 #include <linux/delay.h>
@@ -658,11 +649,7 @@ static int ziirave_wdt_probe(struct i2c_client *client,
        w_priv->wdd.parent = &client->dev;
        w_priv->wdd.groups = ziirave_wdt_groups;
 
-       ret = watchdog_init_timeout(&w_priv->wdd, wdt_timeout, &client->dev);
-       if (ret) {
-               dev_info(&client->dev,
-                        "Unable to select timeout value, using default\n");
-       }
+       watchdog_init_timeout(&w_priv->wdd, wdt_timeout, &client->dev);
 
        /*
         * The default value set in the watchdog should be perfectly valid, so