watchdog: stm32_iwdg: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:56 +0000 (23:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 13:13:16 +0000 (15:13 +0200)
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>
drivers/watchdog/stm32_iwdg.c

index d569a3634d9b4b5e6fd3dbc7c73ddfea99186701..a3a329011a06be4f51c8aff6c76fa4d61b87f274 100644 (file)
@@ -263,10 +263,8 @@ static int stm32_iwdg_probe(struct platform_device *pdev)
        watchdog_init_timeout(wdd, 0, dev);
 
        ret = devm_watchdog_register_device(dev, wdd);
-       if (ret) {
-               dev_err(dev, "failed to register watchdog device\n");
+       if (ret)
                return ret;
-       }
 
        platform_set_drvdata(pdev, wdt);