summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-06-24 15:26:20 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-26 06:59:24 +0200
commita880a7f44eb367b198b77890d4def2e799345e31 (patch)
tree051457d67d3caf024d2412204a2bb20f6affb18f /drivers/watchdog
parente53203137796770f3b713090996f4babb91588f5 (diff)
downloadbarebox-a880a7f44eb367b198b77890d4def2e799345e31.tar.gz
barebox-a880a7f44eb367b198b77890d4def2e799345e31.tar.xz
watchdog: rave-sp-wdt: Remove bogus leftover code
This code should've been removed when the driver was rebased against latest watchdog plumbing in Barebox. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/rave-sp-wdt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/watchdog/rave-sp-wdt.c b/drivers/watchdog/rave-sp-wdt.c
index 1643167851..bd1c43b0f2 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) {