mirror of https://gitee.com/openkylin/linux.git
watchdog: max77620_wdt: drop warning after registering device
The core will print out details now. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> 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
7da547350f
commit
9daa2e1436
|
@ -182,13 +182,7 @@ static int max77620_wdt_probe(struct platform_device *pdev)
|
|||
watchdog_set_drvdata(wdt_dev, wdt);
|
||||
|
||||
watchdog_stop_on_unregister(wdt_dev);
|
||||
ret = devm_watchdog_register_device(dev, wdt_dev);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "watchdog registration failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return devm_watchdog_register_device(dev, wdt_dev);
|
||||
}
|
||||
|
||||
static const struct platform_device_id max77620_wdt_devtype[] = {
|
||||
|
|
Loading…
Reference in New Issue