summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-06-03 12:45:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-06-03 12:45:56 +0000
commitb8754135339aadeff478928b5a99e6ca37092f38 (patch)
tree9c641fda73355ac18b999cf4783a805b505566d9 /sys
parentcfcb7dabea8f4fbdd9f17b110ff8b67108991a7e (diff)
Remove unnecessary tcpib_wdt_unlock() calls.
From Matt Dainty.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/tcpcib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/tcpcib.c b/sys/dev/pci/tcpcib.c
index 5cae998de72..9a63ce08e65 100644
--- a/sys/dev/pci/tcpcib.c
+++ b/sys/dev/pci/tcpcib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpcib.c,v 1.1 2012/05/27 12:24:33 jsg Exp $ */
+/* $OpenBSD: tcpcib.c,v 1.2 2012/06/03 12:45:55 kettenis Exp $ */
/*
* Copyright (c) 2012 Matt Dainty <matt@bodgit-n-scarper.com>
@@ -112,7 +112,6 @@ tcpcib_wdt_init(struct tcpcib_softc *sc, int period)
* Set watchdog to perform a cold reset toggling the GPIO pin and the
* prescaler set to 1ms-10m resolution
*/
- tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTCR,
E600_WDT_WDTCR_ENABLE);
tcpcib_wdt_unlock(sc);
@@ -129,7 +128,6 @@ void
tcpcib_wdt_start(struct tcpcib_softc *sc)
{
/* Enable watchdog */
- tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTLR,
E600_WDT_WDTLR_ENABLE);
}
@@ -141,7 +139,6 @@ tcpcib_wdt_stop(struct tcpcib_softc *sc)
tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_RR1,
E600_WDT_RR1_RELOAD);
- tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTLR, 0);
}