From 9544090f6a334d874a9cd4726c2ee95f63738a61 Mon Sep 17 00:00:00 2001 From: wpaul Date: Wed, 2 Aug 2000 18:19:00 +0000 Subject: Add call to bus_generic_attach() at the end of sk_attach(). It turns out that if you kldload this driver, all the subordinate devices are probed/attached as expected. But this is not the case when the driver is statically compiled into the kernel. Since I do most of my testing with modules, I failed to notice this. I'm not sure if it's intended behavior or not. I think it may be, but it seems a little counter-intuitive. --- sys/dev/sk/if_sk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/sk') diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index d51ee34..b74f3f1 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1410,6 +1410,8 @@ static int sk_attach(dev) /* Turn on the 'driver is loaded' LED. */ CSR_WRITE_2(sc, SK_LED, SK_LED_GREEN_ON); + bus_generic_attach(dev); + fail: splx(s); return(error); -- cgit v1.1