]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/watchdog/davinci_wdt.c
Merge tag 'drm/tegra/for-5.5-rc1-fixes' of git://anongit.freedesktop.org/tegra/linux...
[linux.git] / drivers / watchdog / davinci_wdt.c
index 7b2ee35b5ffd32d73be6d0f4a8b633d711be9fda..2b3f3cd382ef659a0bff310b774f7f330b2a1877 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * drivers/char/watchdog/davinci_wdt.c
  *
@@ -5,10 +6,7 @@
  *
  * Copyright (C) 2006-2013 Texas Instruments.
  *
- * 2007 (c) MontaVista Software, Inc. This file is licensed under
- * the terms of the GNU General Public License version 2. This program
- * is licensed "as is" without any warranty of any kind, whether express
- * or implied.
+ * 2007 (c) MontaVista Software, Inc.
  */
 
 #include <linux/module.h>
@@ -247,13 +245,7 @@ static int davinci_wdt_probe(struct platform_device *pdev)
        if (IS_ERR(davinci_wdt->base))
                return PTR_ERR(davinci_wdt->base);
 
-       ret = devm_watchdog_register_device(dev, wdd);
-       if (ret) {
-               dev_err(dev, "cannot register watchdog device\n");
-               return ret;
-       }
-
-       return 0;
+       return devm_watchdog_register_device(dev, wdd);
 }
 
 static const struct of_device_id davinci_wdt_of_match[] = {