summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_san_xilinx.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-12-07 06:10:25 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-12-07 06:10:25 +0000
commit97acb4446619c5573f564a6d1159a2c3bba27188 (patch)
tree2d61774ae2acf14eb2f1c039b7cae13818394d59 /sys/dev/pci/if_san_xilinx.c
parent8c1eedaf0c5c8e734d4d4d6ccd80796dfb0eac86 (diff)
Cleanup. Rename some defines, add wp_lite_set_te1_cfg()
(used to change LBO and T1/E1 clock configurations) ok deraadt@
Diffstat (limited to 'sys/dev/pci/if_san_xilinx.c')
-rw-r--r--sys/dev/pci/if_san_xilinx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_san_xilinx.c b/sys/dev/pci/if_san_xilinx.c
index 2153c5f8d97..b85b6326850 100644
--- a/sys/dev/pci/if_san_xilinx.c
+++ b/sys/dev/pci/if_san_xilinx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_san_xilinx.c,v 1.5 2004/11/10 10:14:47 grange Exp $ */
+/* $OpenBSD: if_san_xilinx.c,v 1.6 2004/12/07 06:10:24 mcbride Exp $ */
/*-
* Copyright (c) 2001-2004 Sangoma Technologies (SAN)
@@ -339,6 +339,8 @@ wan_xilinx_init(sdla_t *card)
}
memset(sc, 0, sizeof(xilinx_softc_t));
ifp = (struct ifnet *)&sc->common.ifp;
+ ifp->if_softc = sc;
+ sc->common.card = card;
if (wanpipe_generic_register(card, ifp, card->devname)) {
free(sc, M_DEVBUF);
return (NULL);
@@ -346,8 +348,6 @@ wan_xilinx_init(sdla_t *card)
strlcpy(sc->if_name, ifp->if_xname, IFNAMSIZ);
- ifp->if_softc = sc;
- sc->common.card = card;
sc->first_time_slot=-1;
sc->time_slot_map = 0;