diff options
author | marius <marius@FreeBSD.org> | 2010-09-27 20:31:03 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-09-27 20:31:03 +0000 |
commit | 1116f27afa2323b68adb7addf76758c6539a93d4 (patch) | |
tree | b0e2315e90b0b277970494dfb4e685bc75aa7e83 /sys/dev/mii/nsgphy.c | |
parent | e69ddfbd336fdbad200cbbc194a5b9ea125ea3ab (diff) | |
download | FreeBSD-src-1116f27afa2323b68adb7addf76758c6539a93d4.zip FreeBSD-src-1116f27afa2323b68adb7addf76758c6539a93d4.tar.gz |
Use the mii_data provided via mii_attach_args and mii_pdata respectively
instead of reaching out for the softc of the parent.
Diffstat (limited to 'sys/dev/mii/nsgphy.c')
-rw-r--r-- | sys/dev/mii/nsgphy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c index 77ee0f8..b7dcee7 100644 --- a/sys/dev/mii/nsgphy.c +++ b/sys/dev/mii/nsgphy.c @@ -126,7 +126,7 @@ nsgphy_attach(device_t dev) device_printf(dev, "<rev. %d>\n", MII_REV(ma->mii_id2)); device_printf(dev, " "); sc->mii_dev = device_get_parent(dev); - mii = device_get_softc(sc->mii_dev); + mii = ma->mii_data; LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); sc->mii_inst = mii->mii_instance; |