summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-12-15 02:51:21 +0000
committerpeter <peter@FreeBSD.org>2001-12-15 02:51:21 +0000
commitfce71746d6ce4d2c71a9daed6cb5c360265c2a65 (patch)
tree3aa204644439feb580a2a7771f5d9662d868e142 /sys/pci/if_sis.c
parentbe795bba25af4d1460e1b0cffb46f35a0c7248da (diff)
downloadFreeBSD-src-fce71746d6ce4d2c71a9daed6cb5c360265c2a65.zip
FreeBSD-src-fce71746d6ce4d2c71a9daed6cb5c360265c2a65.tar.gz
Patch up some existing style bugs and some that crept in with the
DEVICE_POLLING stuff.
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index ec7ee82..81ec6c4 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -1454,7 +1454,8 @@ static poll_handler_t sis_poll;
static void
sis_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
{
- struct sis_softc *sc = ifp->if_softc;
+ struct sis_softc *sc = ifp->if_softc;
+
SIS_LOCK(sc);
if (cmd == POLL_DEREGISTER) { /* final call, enable interrupts */
CSR_WRITE_4(sc, SIS_IER, 1);
OpenPOWER on IntegriCloud