summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/rlphy.c
diff options
context:
space:
mode:
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