summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/rlphy.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-09-27 20:31:03 +0000
committermarius <marius@FreeBSD.org>2010-09-27 20:31:03 +0000
commit1116f27afa2323b68adb7addf76758c6539a93d4 (patch)
treeb0e2315e90b0b277970494dfb4e685bc75aa7e83 /sys/dev/mii/rlphy.c
parente69ddfbd336fdbad200cbbc194a5b9ea125ea3ab (diff)
downloadFreeBSD-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/rlphy.c')
-rw-r--r--sys/dev/mii/rlphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index fbbdfd0..e2ceb62 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -129,7 +129,7 @@ rlphy_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;
/*
* Check whether we're the RTL8201L PHY and remember so the status
OpenPOWER on IntegriCloud