]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
watchdog: bcm2835_wdt: drop warning after registering device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 18 May 2019 21:27:19 +0000 (23:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 13:13:02 +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/bcm2835_wdt.c

index 560c1c54c17790781766bf065e86d0cdd6e8ef20..027a36c40ab3eba2404a35b00a3a045771eea362 100644 (file)
@@ -202,10 +202,8 @@ static int bcm2835_wdt_probe(struct platform_device *pdev)
 
        watchdog_stop_on_reboot(&bcm2835_wdt_wdd);
        err = devm_watchdog_register_device(dev, &bcm2835_wdt_wdd);
-       if (err) {
-               dev_err(dev, "Failed to register watchdog device");
+       if (err)
                return err;
-       }
 
        if (pm_power_off == NULL) {
                pm_power_off = bcm2835_power_off;