From 20710e9f5f78112cb8eb970c23a0e305a0f3267a Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 15 Feb 2005 18:41:21 +0000 Subject: [PATCH] Initialize Netgraph type at a correct time, before device probing. --- sys/dev/ar/if_ar.c | 2 +- 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 972eb1ab43f7..a459d9267374 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 b943c9b13377..7382fdc0bacd 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 */ /*