watchdog: add error messages when initializing timeout fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 19 Apr 2019 18:15:47 +0000 (20:15 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:04:59 +0000 (21:04 +0200)
commite907972be3816d741f08e82f08c4e88bc807ca36
treeaf57776ba1cdcdad7a90423d39219dac3e29c4ab
parent34ef4087a1d50f5481732ad85544362516e8185f
watchdog: add error messages when initializing timeout fails

This not only removes boilerplate code from watchdog drivers, it can
also be more specific which of the supplied value actually fails. Also,
the loglevel becomes now consistent across drivers.

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