aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Lemon <jlemon@FreeBSD.org>2002-01-22 17:51:44 +0000
committerJonathan Lemon <jlemon@FreeBSD.org>2002-01-22 17:51:44 +0000
commita1a9c8f7e6df802ab28000373aaaaecfe8aaa89e (patch)
tree222e7ec37c068e812c2888c75718ca0851f854b7 /sys/dev
parent81c91055851f44e9d81532baa7fe213e65430117 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fxp/if_fxp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 006a2e8b18424..ce3bde3d4ec15 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -359,6 +359,7 @@ fxp_attach(device_t dev)
bzero(sc, sizeof(*sc));
sc->dev = dev;
callout_handle_init(&sc->stat_ch);
+ sysctl_ctx_init(&sc->sysctl_ctx);
mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE);
s = splimp();
@@ -480,7 +481,6 @@ fxp_attach(device_t dev)
/*
* Create the sysctl tree
*/
- sysctl_ctx_init(&sc->sysctl_ctx);
sc->sysctl_tree = SYSCTL_ADD_NODE(&sc->sysctl_ctx,
SYSCTL_STATIC_CHILDREN(_hw), OID_AUTO,
device_get_nameunit(dev), CTLFLAG_RD, 0, "");