mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
28cee77baf
commit
7c628fb8db
|
|
@ -118,7 +118,6 @@ static int visconti_wdt_probe(struct platform_device *pdev)
|
||||||
struct visconti_wdt_priv *priv;
|
struct visconti_wdt_priv *priv;
|
||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
int ret;
|
|
||||||
unsigned long clk_freq;
|
unsigned long clk_freq;
|
||||||
|
|
||||||
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
|
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);
|
watchdog_stop_on_unregister(wdev);
|
||||||
|
|
||||||
/* This overrides the default timeout only if DT configuration was found */
|
/* This overrides the default timeout only if DT configuration was found */
|
||||||
ret = watchdog_init_timeout(wdev, 0, dev);
|
watchdog_init_timeout(wdev, 0, dev);
|
||||||
if (ret)
|
|
||||||
dev_warn(dev, "Specified timeout value invalid, using default\n");
|
|
||||||
|
|
||||||
return devm_watchdog_register_device(dev, wdev);
|
return devm_watchdog_register_device(dev, wdev);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue