summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/amphy.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-28 19:25:07 +0000
committerphk <phk@FreeBSD.org>2002-04-28 19:25:07 +0000
commitf8c369f7e5ced10460a44577e47774f38701b831 (patch)
tree54b58d5abc04323ae639c02f4cb133deb93be402 /sys/dev/mii/amphy.c
parent47669f2ea061ed29fe2ae4638fa8055cd9144c3a (diff)
downloadFreeBSD-src-f8c369f7e5ced10460a44577e47774f38701b831.zip
FreeBSD-src-f8c369f7e5ced10460a44577e47774f38701b831.tar.gz
Don't pass three args when one will do just fine, and even prevent
mistakes like the one brgphy.c (now corrected).
Diffstat (limited to 'sys/dev/mii/amphy.c')
-rw-r--r--sys/dev/mii/amphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/amphy.c b/sys/dev/mii/amphy.c
index 5692d78..64292d6 100644
--- a/sys/dev/mii/amphy.c
+++ b/sys/dev/mii/amphy.c
@@ -142,7 +142,7 @@ static int amphy_attach(dev)
sc->mii_capabilities =
PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
device_printf(dev, " ");
- mii_add_media(mii, sc->mii_capabilities, sc->mii_inst);
+ mii_add_media(sc);
printf("\n");
#undef ADD
MIIBUS_MEDIAINIT(sc->mii_dev);
OpenPOWER on IntegriCloud