Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2021 09:26:21 GMT
From:      Wojciech Macek <wma@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ca4a6606f0b8 - main - enetc_mdio: Fix devclass name
Message-ID:  <202110010926.1919QLX9003867@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wma:

URL: https://cgit.FreeBSD.org/src/commit/?id=ca4a6606f0b8c4386e3c05a57e1370e2f215d5b9

commit ca4a6606f0b8c4386e3c05a57e1370e2f215d5b9
Author:     Kornel Duleba <mindal@semihalf.com>
AuthorDate: 2021-08-05 10:31:33 +0000
Commit:     Wojciech Macek <wma@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),
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110010926.1919QLX9003867>