This code should've been removed when the driver was rebased against latest watchdog plumbing in Barebox. Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- drivers/watchdog/rave-sp-wdt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/watchdog/rave-sp-wdt.c b/drivers/watchdog/rave-sp-wdt.c index 164316785..bd1c43b0f 100644 --- a/drivers/watchdog/rave-sp-wdt.c +++ b/drivers/watchdog/rave-sp-wdt.c @@ -75,7 +75,6 @@ struct rave_sp_wdt { struct restart_handler restart; unsigned int timeout; unsigned int boot_source; - struct device_d dev; }; static struct rave_sp_wdt *to_rave_sp_wdt(struct watchdog *wdd) @@ -357,10 +356,8 @@ static int rave_sp_wdt_probe(struct device_d *dev) rave_sp_wdt_set_boot_source, rave_sp_wdt_get_boot_source, &sp_wd->boot_source, "%u", sp_wd); - if (IS_ERR(p)) { - unregister_device(&sp_wd->dev); + if (IS_ERR(p)) return PTR_ERR(p); - } ret = sp_wd->variant->reset_reason(wdd); if (ret < 0) { -- 2.17.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox