X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fxilinx_tb_wdt.c;h=6336c9488345bdf8879a3be98152ffaf4751bd6b;hb=4ca0c3c993436cca743ed521e7f3d784d7fe31c8;hp=4e46e4cef785637e7426915eb54638a0c07c0520;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=u-boot diff --git a/drivers/watchdog/xilinx_tb_wdt.c b/drivers/watchdog/xilinx_tb_wdt.c index 4e46e4cef7..6336c94883 100644 --- a/drivers/watchdog/xilinx_tb_wdt.c +++ b/drivers/watchdog/xilinx_tb_wdt.c @@ -54,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; @@ -65,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."); }