summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/watchdog/sunxi_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/watchdog/sunxi_wdt.c')
-rw-r--r--kernel/drivers/watchdog/sunxi_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/watchdog/sunxi_wdt.c b/kernel/drivers/watchdog/sunxi_wdt.c
index a29afb37c..47bd8a14d 100644
--- a/kernel/drivers/watchdog/sunxi_wdt.c
+++ b/kernel/drivers/watchdog/sunxi_wdt.c
@@ -184,7 +184,7 @@ static int sunxi_wdt_start(struct watchdog_device *wdt_dev)
/* Set system reset function */
reg = readl(wdt_base + regs->wdt_cfg);
reg &= ~(regs->wdt_reset_mask);
- reg |= ~(regs->wdt_reset_val);
+ reg |= regs->wdt_reset_val;
writel(reg, wdt_base + regs->wdt_cfg);
/* Enable watchdog */