Author: ray
Date: Wed Nov  7 22:43:09 2012
New Revision: 242716
URL: http://svnweb.freebsd.org/changeset/base/242716

Log:
  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)

Modified:
  head/sys/dev/etherswitch/arswitch/arswitch.c

Modified: head/sys/dev/etherswitch/arswitch/arswitch.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch.c        Wed Nov  7 22:15:28 
2012        (r242715)
+++ head/sys/dev/etherswitch/arswitch/arswitch.c        Wed Nov  7 22:43:09 
2012        (r242716)
@@ -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, 
 
 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),
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to