aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/enetc
diff options
context:
space:
mode:
authorKornel Duleba <mindal@semihalf.com>2021-08-05 10:31:33 +0000
committerWojciech Macek <wma@FreeBSD.org>2021-10-01 09:24:08 +0000
commitca4a6606f0b8c4386e3c05a57e1370e2f215d5b9 (patch)
tree709bfb5e3fcafd14c6a5546c0495fa7d62179c5c /sys/dev/enetc
parenta75400c5addf905edea7897c5071904556a691f2 (diff)
enetc_mdio: Fix devclass name
Use correct devclass name, due to the mismatch miibus would attach to the wrong thing causing mii_attach to silently fail. Fixes: dfcaa2c18bf9 (enetc_mdio: Support building the driver ...)
Diffstat (limited to 'sys/dev/enetc')
-rw-r--r--sys/dev/enetc/enetc_mdio_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/enetc/enetc_mdio_pci.c b/sys/dev/enetc/enetc_mdio_pci.c
index aac236d1c246..517efa9b9598 100644
--- a/sys/dev/enetc/enetc_mdio_pci.c
+++ b/sys/dev/enetc/enetc_mdio_pci.c
@@ -177,7 +177,7 @@ static device_method_t enetc_mdio_pci_methods[] ={
};
static driver_t enetc_mdio_pci_driver = {
- "enetc_mdio_pci",
+ "enetc_mdio",
enetc_mdio_pci_methods,
sizeof(struct enetc_mdio_pci_softc),
};