From 1116f27afa2323b68adb7addf76758c6539a93d4 Mon Sep 17 00:00:00 2001 From: marius Date: Mon, 27 Sep 2010 20:31:03 +0000 Subject: Use the mii_data provided via mii_attach_args and mii_pdata respectively instead of reaching out for the softc of the parent. --- sys/dev/mii/brgphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/mii/brgphy.c') diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index b921a8c..c0175ff 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -187,7 +187,7 @@ brgphy_attach(device_t dev) sc = &bsc->mii_sc; 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); /* Initialize mii_softc structure */ -- cgit v1.1