aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mdio
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-11-05 01:30:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-11-05 01:30:13 +0000
commitd62d10eb1229c9aa0b3cf1b18872df59c18155db (patch)
tree7feec17c01d7f3191e8ea8c52c661a6c0b06360e /sys/dev/mdio
parent9e1db51d4b5fce8a1ea7271018970760e396500c (diff)
Diffstat (limited to 'sys/dev/mdio')
-rw-r--r--sys/dev/mdio/mdio.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/mdio/mdio.c b/sys/dev/mdio/mdio.c
index c34493254e0f..64d3b23c2372 100644
--- a/sys/dev/mdio/mdio.c
+++ b/sys/dev/mdio/mdio.c
@@ -60,14 +60,6 @@ mdio_attach(device_t dev)
}
static int
-mdio_detach(device_t dev)
-{
-
- bus_generic_detach(dev);
- return (0);
-}
-
-static int
mdio_readreg(device_t dev, int phy, int reg)
{
@@ -108,7 +100,7 @@ static device_method_t mdio_methods[] = {
DEVMETHOD(device_identify, mdio_identify),
DEVMETHOD(device_probe, mdio_probe),
DEVMETHOD(device_attach, mdio_attach),
- DEVMETHOD(device_detach, mdio_detach),
+ DEVMETHOD(device_detach, bus_generic_detach),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
/* bus interface */