]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
watchdog: hpwdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:28 +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/hpwdt.c

index 8a90f159ffb1e5c08d75054a3a585fad62cbc451..f7b5242b9c85664f0886ecf0af26d96467778783 100644 (file)
@@ -317,10 +317,8 @@ static int hpwdt_init_one(struct pci_dev *dev,
 
        hpwdt_dev.parent = &dev->dev;
        retval = watchdog_register_device(&hpwdt_dev);
-       if (retval < 0) {
-               dev_err(&dev->dev, "watchdog register failed: %d.\n", retval);
+       if (retval < 0)
                goto error_wd_register;
-       }
 
        dev_info(&dev->dev, "HPE Watchdog Timer Driver: Version: %s\n",
                                HPWDT_VERSION);