git: ca4a6606f0b8 - main - enetc_mdio: Fix devclass name
Wojciech Macek
wma at FreeBSD.org
Fri Oct 1 09:26:22 UTC 2021
The branch main has been updated by wma:
URL: https://cgit.FreeBSD.org/src/commit/?id=ca4a6606f0b8c4386e3c05a57e1370e2f215d5b9
commit ca4a6606f0b8c4386e3c05a57e1370e2f215d5b9
Author: Kornel Duleba <mindal at semihalf.com>
AuthorDate: 2021-08-05 10:31:33 +0000
Commit: Wojciech Macek <wma at FreeBSD.org>
CommitDate: 2021-10-01 09:24:08 +0000
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 ...)
---
sys/dev/enetc/enetc_mdio_pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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),
};
More information about the dev-commits-src-all
mailing list