diff options
author | ru <ru@FreeBSD.org> | 2005-02-15 18:41:21 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-15 18:41:21 +0000 |
commit | 0054992ccdf09c6d1e4596265a1fcf6de80db953 (patch) | |
tree | 03ea3ba89bdb39bdafdfc11f2d3b98ac8893f906 | |
parent | 9f215add3204540fa45c1511450a05a7de4fae8a (diff) | |
download | FreeBSD-src-0054992ccdf09c6d1e4596265a1fcf6de80db953.zip FreeBSD-src-0054992ccdf09c6d1e4596265a1fcf6de80db953.tar.gz |
Initialize Netgraph type at a correct time, before device probing.
-rw-r--r-- | sys/dev/ar/if_ar.c | 2 | ||||
-rw-r--r-- | sys/dev/sr/if_sr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index 972eb1a..a459d92 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -234,7 +234,7 @@ static struct ng_type typestruct = { .rcvdata = ngar_rcvdata, .disconnect = ngar_disconnect, }; -NETGRAPH_INIT_ORDERED(sync_ar, &typestruct, SI_SUB_DRIVERS, SI_ORDER_ANY); +NETGRAPH_INIT_ORDERED(sync_ar, &typestruct, SI_SUB_DRIVERS, SI_ORDER_FIRST); #endif /* NETGRAPH */ int diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index b943c9b..7382fdc 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -281,7 +281,7 @@ static struct ng_type typestruct = { .rcvdata = ngsr_rcvdata, .disconnect = ngsr_disconnect, }; -NETGRAPH_INIT_ORDERED(sync_sr, &typestruct, SI_SUB_DRIVERS, SI_ORDER_ANY); +NETGRAPH_INIT_ORDERED(sync_sr, &typestruct, SI_SUB_DRIVERS, SI_ORDER_FIRST); #endif /* NETGRAPH */ /* |