summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/xmphy.c
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2006-07-03 02:53:40 +0000
committeryongari <yongari@FreeBSD.org>2006-07-03 02:53:40 +0000
commit5fe63e39e85c05f49c9c4e4bb6d46b012481331a (patch)
tree7c86d14d85c7a448cf7b3957e7f0f010c97b33fa /sys/dev/mii/xmphy.c
parenta4a29e2efc3a44f4f0fd8fe3ae58b878c1d439bd (diff)
downloadFreeBSD-src-5fe63e39e85c05f49c9c4e4bb6d46b012481331a.zip
FreeBSD-src-5fe63e39e85c05f49c9c4e4bb6d46b012481331a.tar.gz
Replace hard-coded magic constants to system defined constants
(BUS_PROBE_DEFAULT, BUS_PROBE_GENERIC etc). There is no functional changes. Reviewed by: oleg, scottl
Diffstat (limited to 'sys/dev/mii/xmphy.c')
-rw-r--r--sys/dev/mii/xmphy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index b6bf7f1..c071b1f 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -93,13 +93,13 @@ xmphy_probe(device_t dev)
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxXAQTI &&
MII_MODEL(ma->mii_id2) == MII_MODEL_XAQTI_XMACII) {
device_set_desc(dev, MII_STR_XAQTI_XMACII);
- return(0);
+ return(BUS_PROBE_DEFAULT);
}
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_JATO &&
MII_MODEL(ma->mii_id2) == MII_MODEL_JATO_BASEX) {
device_set_desc(dev, MII_STR_JATO_BASEX);
- return(0);
+ return(BUS_PROBE_DEFAULT);
}
return(ENXIO);
OpenPOWER on IntegriCloud