From ca4a6606f0b8c4386e3c05a57e1370e2f215d5b9 Mon Sep 17 00:00:00 2001 From: Kornel Duleba Date: Thu, 5 Aug 2021 12:31:33 +0200 Subject: [PATCH] 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), };