Hi Tobias,

El 23/12/14 a las 10:28, Tobias Andresen escibió:
---
  drivers/watchdog/sunxi_wdt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c
index b62301e..00de94b 100644
--- a/drivers/watchdog/sunxi_wdt.c
+++ b/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);

You can drop the ()'s too, they're not needed now.

        writel(reg, wdt_base + regs->wdt_cfg);

        /* Enable watchdog */


What tree is this for? If this is a patch for mainline, please include your signoff and Cc the relevant maintainers and mailing lists[1]; in this case at least Maxime, Wim, linux-arm-kernel and linux-watchdog.

Cheers!

Emilio

[1] ./scripts/get_maintainer.pl on the kernel tree can help you figure out who to send it to.

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to