diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-16 17:08:09 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-16 17:08:09 +0000 |
commit | 80f2e900a465814c19deeb0fc8250aedffca0334 (patch) | |
tree | 8c932151b5017cccfd0df13f1d034856f7a84125 /sys/dev/pci/if_sf.c | |
parent | 446e06cf4fde4c29fb426a44db99010362e27a48 (diff) |
Use mii_attach() directly instead of mii_phy_probe().
Diffstat (limited to 'sys/dev/pci/if_sf.c')
-rw-r--r-- | sys/dev/pci/if_sf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sf.c b/sys/dev/pci/if_sf.c index fc0fbe05e3e..1350c99c65d 100644 --- a/sys/dev/pci/if_sf.c +++ b/sys/dev/pci/if_sf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sf.c,v 1.7 2000/08/02 19:23:54 aaron Exp $ */ +/* $OpenBSD: if_sf.c,v 1.8 2000/10/16 17:08:08 aaron Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -749,7 +749,8 @@ void sf_attach(parent, self, aux) sc->sc_mii.mii_writereg = sf_miibus_writereg; sc->sc_mii.mii_statchg = sf_miibus_statchg; ifmedia_init(&sc->sc_mii.mii_media, 0, sf_ifmedia_upd, sf_ifmedia_sts); - mii_phy_probe(self, &sc->sc_mii, 0xffffffff); + mii_attach(self, &sc->sc_mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, + 0); if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) { ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL); ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE); |