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

index f98f35a0589678afc545b44584017c32fbdd1b49..a30835f547b32ecf5f0b1b0577ca9b57ba6bcf3a 100644 (file)
@@ -315,11 +315,8 @@ static int esb_probe(struct pci_dev *pdev,
 
        /* Register the watchdog so that userspace has access to it */
        ret = watchdog_register_device(&edev->wdd);
-       if (ret != 0) {
-               dev_err(&pdev->dev,
-                       "cannot register watchdog device (err=%d)\n", ret);
+       if (ret != 0)
                goto err_unmap;
-       }
        dev_info(&pdev->dev,
                "initialized. heartbeat=%d sec (nowayout=%d)\n",
                edev->wdd.timeout, nowayout);