Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: visconti: don't print superfluous errors

The watchdog core will handle error messages already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.x90@mail.toshiba>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Wolfram Sang and committed by
Wim Van Sebroeck
7c628fb8 28cee77b

+1 -4
+1 -4
drivers/watchdog/visconti_wdt.c
··· 118 118 struct visconti_wdt_priv *priv; 119 119 struct device *dev = &pdev->dev; 120 120 struct clk *clk; 121 - int ret; 122 121 unsigned long clk_freq; 123 122 124 123 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); ··· 152 153 watchdog_stop_on_unregister(wdev); 153 154 154 155 /* This overrides the default timeout only if DT configuration was found */ 155 - ret = watchdog_init_timeout(wdev, 0, dev); 156 - if (ret) 157 - dev_warn(dev, "Specified timeout value invalid, using default\n"); 156 + watchdog_init_timeout(wdev, 0, dev); 158 157 159 158 return devm_watchdog_register_device(dev, wdev); 160 159 }