diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c index a6dfa9d01702..bfe132cfea87 100644 --- a/drivers/watchdog/w83627hf_wdt.c +++ b/drivers/watchdog/w83627hf_wdt.c @@ -316,9 +316,8 @@ static unsigned int wdt_get_time(struct watchdog_device *wdog) * Kernel Interfaces */ -static const struct watchdog_info wdt_info = { +static struct watchdog_info wdt_info = { .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE, - .identity = "W83627HF Watchdog", }; static const struct watchdog_ops wdt_ops = { @@ -525,6 +524,9 @@ static int __init wdt_init(void) pr_info("WDT driver for %s Super I/O chip initialising\n", chip_name[chip]); + snprintf(wdt_info.identity, sizeof(wdt_info.identity), "%s Watchdog", + chip_name[chip]); + watchdog_init_timeout(&wdt_dev, timeout, NULL); watchdog_set_nowayout(&wdt_dev, nowayout); watchdog_stop_on_reboot(&wdt_dev);