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: dfcaa2c18b (enetc_mdio: Support building the driver ...)
This commit is contained in:
Kornel Duleba 2021-08-05 12:31:33 +02:00 committed by Wojciech Macek
parent a75400c5ad
commit ca4a6606f0

View File

@ -177,7 +177,7 @@ static device_method_t enetc_mdio_pci_methods[] ={
}; };
static driver_t enetc_mdio_pci_driver = { static driver_t enetc_mdio_pci_driver = {
"enetc_mdio_pci", "enetc_mdio",
enetc_mdio_pci_methods, enetc_mdio_pci_methods,
sizeof(struct enetc_mdio_pci_softc), sizeof(struct enetc_mdio_pci_softc),
}; };