From: Wolfram Sang Date: Wed, 13 Aug 2025 19:05:11 +0000 (+0200) Subject: watchdog: visconti: don't print superfluous errors X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7c628fb8db079917ceee70bffb0e784d30cb553e;p=users%2Fhch%2Fmisc.git watchdog: visconti: don't print superfluous errors The watchdog core will handle error messages already. Signed-off-by: Wolfram Sang Reviewed-by: Guenter Roeck Reviewed-by: Nobuhiro Iwamatsu Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/visconti_wdt.c b/drivers/watchdog/visconti_wdt.c index cef0794708e7..7795e7fbf67e 100644 --- a/drivers/watchdog/visconti_wdt.c +++ b/drivers/watchdog/visconti_wdt.c @@ -118,7 +118,6 @@ static int visconti_wdt_probe(struct platform_device *pdev) struct visconti_wdt_priv *priv; struct device *dev = &pdev->dev; struct clk *clk; - int ret; unsigned long clk_freq; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); @@ -153,9 +152,7 @@ static int visconti_wdt_probe(struct platform_device *pdev) watchdog_stop_on_unregister(wdev); /* This overrides the default timeout only if DT configuration was found */ - ret = watchdog_init_timeout(wdev, 0, dev); - if (ret) - dev_warn(dev, "Specified timeout value invalid, using default\n"); + watchdog_init_timeout(wdev, 0, dev); return devm_watchdog_register_device(dev, wdev); }