Skip to content

Commit 7c628fb

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: visconti: don't print superfluous errors
The watchdog core will handle error messages already. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Nobuhiro Iwamatsu <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 28cee77 commit 7c628fb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/watchdog/visconti_wdt.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ static int visconti_wdt_probe(struct platform_device *pdev)
118118
struct visconti_wdt_priv *priv;
119119
struct device *dev = &pdev->dev;
120120
struct clk *clk;
121-
int ret;
122121
unsigned long clk_freq;
123122

124123
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
@@ -153,9 +152,7 @@ static int visconti_wdt_probe(struct platform_device *pdev)
153152
watchdog_stop_on_unregister(wdev);
154153

155154
/* This overrides the default timeout only if DT configuration was found */
156-
ret = watchdog_init_timeout(wdev, 0, dev);
157-
if (ret)
158-
dev_warn(dev, "Specified timeout value invalid, using default\n");
155+
watchdog_init_timeout(wdev, 0, dev);
159156

160157
return devm_watchdog_register_device(dev, wdev);
161158
}

0 commit comments

Comments
 (0)