summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/rlswitch.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/rlswitch.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/rlswitch.c')
-rw-r--r--sys/dev/mii/rlswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/rlswitch.c b/sys/dev/mii/rlswitch.c
index 95e1e7f..0e001f8 100644
--- a/sys/dev/mii/rlswitch.c
+++ b/sys/dev/mii/rlswitch.c
@@ -117,7 +117,7 @@ rlswitch_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;
/*
* We handle all pseudo PHY in a single instance, so never allow
OpenPOWER on IntegriCloud