diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-08-02 18:19:00 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-08-02 18:19:00 +0000 |
commit | 9544090f6a334d874a9cd4726c2ee95f63738a61 (patch) | |
tree | 387aef2b4cb9b1333a8840c144ba58e5dbfefa8e /sys/pci | |
parent | 72460d1dc99f6e19e95682edb5c42ec55015da8b (diff) | |
download | FreeBSD-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/pci')
-rw-r--r-- | sys/pci/if_sk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index d51ee34..b74f3f1 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/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); |