Skip to content

Commit c9e8ba3

Browse files
Wolfram SangWim Van Sebroeck
authored andcommitted
watchdog: da9055_wdt: don't print out if registering watchdog fails
The core will do this already. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Guenter Roeck <[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 140fb00 commit c9e8ba3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/watchdog/da9055_wdt.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,7 @@ static int da9055_wdt_probe(struct platform_device *pdev)
146146
return ret;
147147
}
148148

149-
ret = devm_watchdog_register_device(dev, &driver_data->wdt);
150-
if (ret != 0)
151-
dev_err(da9055->dev, "watchdog_register_device() failed: %d\n",
152-
ret);
153-
154-
return ret;
149+
return devm_watchdog_register_device(dev, &driver_data->wdt);
155150
}
156151

157152
static struct platform_driver da9055_wdt_driver = {

0 commit comments

Comments
 (0)