]> git.sur5r.net Git - u-boot/blobdiff - drivers/watchdog/xilinx_tb_wdt.c
mtd: nand: mxs_nand: add minimal ECC support
[u-boot] / drivers / watchdog / xilinx_tb_wdt.c
index 4e46e4cef785637e7426915eb54638a0c07c0520..2274123e49196d4b816f9e64cf5fe65fba08796f 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2011-2013 Xilinx Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -54,7 +53,7 @@ static void hw_watchdog_isr(void *arg)
        hw_watchdog_reset();
 }
 
-int hw_watchdog_init(void)
+void hw_watchdog_init(void)
 {
        int ret;
 
@@ -65,7 +64,5 @@ int hw_watchdog_init(void)
        ret = install_interrupt_handler(CONFIG_WATCHDOG_IRQ,
                                                hw_watchdog_isr, NULL);
        if (ret)
-               return 1;
-
-       return 0;
+               puts("Watchdog IRQ registration failed.");
 }