OSDN Git Service

watchdog: softdog: use watchdog core to init timeout value
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 25 May 2016 06:37:44 +0000 (08:37 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 17 Jul 2016 18:54:34 +0000 (20:54 +0200)
commite8cf96abba977b6d66bfc2bbc5248a924c9edaec
treef4a175707eeb39e78090bcd564af35a6062cdd8b
parent9c963ba0e0bacfb13c41d3334630ff67044ac159
watchdog: softdog: use watchdog core to init timeout value

Error string and comment say we fall back to a default, but in reality
we bailed out. Refactor the code to use the core helper which then
matches the described behaviour. While updating the init message anyhow,
shorten it while we are here; no need for versioning there as well and
the name is already given via pr_fmt.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/softdog.c