diff options
Diffstat (limited to 'drivers/watchdog/kvx_wdt.c')
-rw-r--r-- | drivers/watchdog/kvx_wdt.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/watchdog/kvx_wdt.c b/drivers/watchdog/kvx_wdt.c index da19136fda..be6b08b71c 100644 --- a/drivers/watchdog/kvx_wdt.c +++ b/drivers/watchdog/kvx_wdt.c @@ -48,7 +48,7 @@ static int kvx_wdt_set_timeout(struct watchdog *wdd, unsigned int timeout) static int count; -static int kvx_wdt_drv_probe(struct device_d *dev) +static int kvx_wdt_drv_probe(struct device *dev) { struct watchdog *wdd; struct clk *clk; @@ -73,11 +73,9 @@ static int kvx_wdt_drv_probe(struct device_d *dev) wdd->hwdev = dev; wdd->set_timeout = kvx_wdt_set_timeout; - /* Be sure that interrupt are disable */ + /* Be sure that interrupt are disabled */ kvx_sfr_set_field(TCR, WIE, 0); - kvx_watchdog_disable(); - return watchdog_register(wdd); } @@ -85,8 +83,9 @@ static struct of_device_id kvx_wdt_of_match[] = { { .compatible = "kalray,kvx-core-watchdog", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, kvx_wdt_of_match); -static struct driver_d kvx_wdt_driver = { +static struct driver kvx_wdt_driver = { .name = "kvx-wdt", .probe = kvx_wdt_drv_probe, .of_compatible = DRV_OF_COMPAT(kvx_wdt_of_match), |