]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/watchdog/xilinx_tb_wdt.c
dm: cros_ec: Convert cros_ec_i2c over to driver model
[karo-tx-uboot.git] / drivers / watchdog / xilinx_tb_wdt.c
index f7c722e7caedbeb9ee01e76d85f7c46098800995..6336c9488345bdf8879a3be98152ffaf4751bd6b 100644 (file)
@@ -1,23 +1,7 @@
 /*
  * Copyright (c) 2011-2013 Xilinx Inc.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -70,7 +54,7 @@ static void hw_watchdog_isr(void *arg)
        hw_watchdog_reset();
 }
 
-int hw_watchdog_init(void)
+void hw_watchdog_init(void)
 {
        int ret;
 
@@ -81,7 +65,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.");
 }