summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorray <ray@FreeBSD.org>2012-11-07 22:43:09 +0000
committerray <ray@FreeBSD.org>2012-11-07 22:43:09 +0000
commit8a90c2da05ea2c6cb174003addda933a1fa5da36 (patch)
treee52808b25c9f35291455e06e3fb37060e16fd611
parentd691931d6ef7ee40e23716568c8a893977b3905f (diff)
downloadFreeBSD-src-8a90c2da05ea2c6cb174003addda933a1fa5da36.zip
FreeBSD-src-8a90c2da05ea2c6cb174003addda933a1fa5da36.tar.gz
Disable automatic attachment of arswitch. It can't be auto-detected (like PHYs
do) and cause a problems trying to attach another instance to child mdio. Submitted by: Luiz Otavio O Souza Approved by: adrian (menthor)
-rw-r--r--sys/dev/etherswitch/arswitch/arswitch.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c
index 07c7d4e..001b54e 100644
--- a/sys/dev/etherswitch/arswitch/arswitch.c
+++ b/sys/dev/etherswitch/arswitch/arswitch.c
@@ -77,16 +77,6 @@ static void arswitch_tick(void *arg);
static int arswitch_ifmedia_upd(struct ifnet *);
static void arswitch_ifmedia_sts(struct ifnet *, struct ifmediareq *);
-static void
-arswitch_identify(driver_t *driver, device_t parent)
-{
- device_t child;
-
- if (device_find_child(parent, driver->name, -1) == NULL) {
- child = BUS_ADD_CHILD(parent, 0, driver->name, -1);
- }
-}
-
static int
arswitch_probe(device_t dev)
{
@@ -557,7 +547,6 @@ arswitch_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
static device_method_t arswitch_methods[] = {
/* Device interface */
- DEVMETHOD(device_identify, arswitch_identify),
DEVMETHOD(device_probe, arswitch_probe),
DEVMETHOD(device_attach, arswitch_attach),
DEVMETHOD(device_detach, arswitch_detach),
OpenPOWER on IntegriCloud