summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/it.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-10-17 22:31:59 +0000
committerderaadt <deraadt@openbsd.org>2012-10-17 22:31:59 +0000
commit2bc62deca48d4e48b34ffa22cb9403b25aaa9c56 (patch)
treee9d3498ac5f31b94cd2cc5b05bb47b1c1d28ceab /sys/dev/isa/it.c
parentNarrow the spltty/splx pair in com_activate to only enclose the minimum (diff)
downloadwireguard-openbsd-2bc62deca48d4e48b34ffa22cb9403b25aaa9c56.tar.xz
wireguard-openbsd-2bc62deca48d4e48b34ffa22cb9403b25aaa9c56.zip
Swap arguments to wdog_register() since it is nicer, and prepare
wdog_shutdown() for external usage.
Diffstat (limited to 'sys/dev/isa/it.c')
-rw-r--r--sys/dev/isa/it.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index bed72d7e166..92d34bd3c42 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.40 2011/01/20 16:59:55 form Exp $ */
+/* $OpenBSD: it.c,v 1.41 2012/10/17 22:32:01 deraadt Exp $ */
/*
* Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru>
@@ -229,7 +229,7 @@ it_attach(struct device *parent, struct device *self, void *aux)
it_writereg(sc->sc_iot, sc->sc_ioh, IT_LDN, IT_WDT_LDN);
it_writereg(sc->sc_iot, sc->sc_ioh, IT_WDT_CSR, 0x00);
it_writereg(sc->sc_iot, sc->sc_ioh, IT_WDT_TCR, 0x00);
- wdog_register(sc, it_wdog_cb);
+ wdog_register(it_wdog_cb, sc);
}
/* exit MB PnP mode and unmap */