aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mii/mlphy.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2015-01-12 22:27:38 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2015-01-12 22:27:38 +0000
commit7e310d2d503f751ec8a272939f9d6e1dca9577ec (patch)
tree2ebdcab3a6a9c5b84714d1641f3f96996eccb9e3 /sys/dev/mii/mlphy.c
parent4882501b5cc046730acd163c609df6ab2496c00b (diff)
Notes
Diffstat (limited to 'sys/dev/mii/mlphy.c')
-rw-r--r--sys/dev/mii/mlphy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mii/mlphy.c b/sys/dev/mii/mlphy.c
index eb6aa4c660746..fbb34819a96d8 100644
--- a/sys/dev/mii/mlphy.c
+++ b/sys/dev/mii/mlphy.c
@@ -128,8 +128,7 @@ mlphy_probe(dev)
* encountered the 6692 on an Olicom card with a ThunderLAN
* controller chip.
*/
- if (strcmp(device_get_name(device_get_parent(device_get_parent(dev))),
- "tl") != 0)
+ if (!mii_dev_mac_match(dev, "tl"))
return (ENXIO);
device_set_desc(dev, "Micro Linear 6692 media interface");