Skip to content

Commit 74ccee5

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: rza_wdt: don't print out if registering watchdog fails
The core will do this already. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Wim Van Sebroeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 844f8df commit 74ccee5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/watchdog/rza_wdt.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ static int rza_wdt_probe(struct platform_device *pdev)
169169
struct device *dev = &pdev->dev;
170170
struct rza_wdt *priv;
171171
unsigned long rate;
172-
int ret;
173172

174173
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
175174
if (!priv)
@@ -218,11 +217,7 @@ static int rza_wdt_probe(struct platform_device *pdev)
218217
watchdog_init_timeout(&priv->wdev, 0, dev);
219218
watchdog_set_drvdata(&priv->wdev, priv);
220219

221-
ret = devm_watchdog_register_device(dev, &priv->wdev);
222-
if (ret)
223-
dev_err(dev, "Cannot register watchdog device\n");
224-
225-
return ret;
220+
return devm_watchdog_register_device(dev, &priv->wdev);
226221
}
227222

228223
static const struct of_device_id rza_wdt_of_match[] = {

0 commit comments

Comments
 (0)