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/amphy.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/amphy.c')
-rw-r--r-- | sys/dev/mii/amphy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/amphy.c b/sys/dev/mii/amphy.c index 3c06561..f493de4 100644 --- a/sys/dev/mii/amphy.c +++ b/sys/dev/mii/amphy.c @@ -106,7 +106,7 @@ amphy_attach(device_t dev) sc = device_get_softc(dev); ma = device_get_ivars(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; |