summaryrefslogtreecommitdiffstats
path: root/sys/dev/sk
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-08-02 18:19:00 +0000
committerwpaul <wpaul@FreeBSD.org>2000-08-02 18:19:00 +0000
commit9544090f6a334d874a9cd4726c2ee95f63738a61 (patch)
tree387aef2b4cb9b1333a8840c144ba58e5dbfefa8e /sys/dev/sk
parent72460d1dc99f6e19e95682edb5c42ec55015da8b (diff)
downloadFreeBSD-src-9544090f6a334d874a9cd4726c2ee95f63738a61.zip
FreeBSD-src-9544090f6a334d874a9cd4726c2ee95f63738a61.tar.gz
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.
Diffstat (limited to 'sys/dev/sk')
-rw-r--r--sys/dev/sk/if_sk.c2
1 files changed, 2 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud