summaryrefslogtreecommitdiffstats
path: root/sys/dev/bwn
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-03-03 20:06:09 +0000
committerweongyo <weongyo@FreeBSD.org>2010-03-03 20:06:09 +0000
commit38947f277771d732c1b71f9fff319fd67823d87c (patch)
tree1f508b424c7b0d23b78a1a2788fb874d264fe8fe /sys/dev/bwn
parentf9d9892e14f17d6540456cb0a2700eef05f0b76d (diff)
downloadFreeBSD-src-38947f277771d732c1b71f9fff319fd67823d87c.zip
FreeBSD-src-38947f277771d732c1b71f9fff319fd67823d87c.tar.gz
fixes an attached-at-boot issue that bwn(4) using device_identify
interface didn't be attached automatically at boot time so changes a approach to attach children based on leveraging some newbus niceties. Submitted by: nwhitehorn
Diffstat (limited to 'sys/dev/bwn')
-rw-r--r--sys/dev/bwn/if_bwn.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index 7d1e663..0a86c65 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -14312,16 +14312,8 @@ bwn_sysctl_node(struct bwn_softc *sc)
#endif
}
-static void
-bwn_identify(driver_t *driver, device_t parent)
-{
-
- BUS_ADD_CHILD(parent, 0, "bwn", -1);
-}
-
static device_method_t bwn_methods[] = {
/* Device interface */
- DEVMETHOD(device_identify, bwn_identify),
DEVMETHOD(device_probe, bwn_probe),
DEVMETHOD(device_attach, bwn_attach),
DEVMETHOD(device_detach, bwn_detach),
OpenPOWER on IntegriCloud