microblaze: Fix watchdog initialization
The patch:
"blackfin: Move blackfin watchdog driver out of the blackfin arch folder."
(sha1: e9a389a184)
changed hw_watchdog_init() prototype which didn't match
with Microblaze one.
This patch fixes the driver and Microblaze initialization.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user