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

index 671f4ba7b4ed67bac51497f430ecd07b683e4592..7caf3aa71c6ab9aede683c8e1ab0ccde58984e11 100644 (file)
@@ -98,10 +98,8 @@ static int stmp3xxx_wdt_probe(struct platform_device *pdev)
        stmp3xxx_wdd.parent = dev;
 
        ret = devm_watchdog_register_device(dev, &stmp3xxx_wdd);
-       if (ret < 0) {
-               dev_err(dev, "cannot register watchdog device\n");
+       if (ret < 0)
                return ret;
-       }
 
        if (register_reboot_notifier(&wdt_notifier))
                dev_warn(dev, "cannot register reboot notifier\n");