From nobody Mon May 09 21:47:32 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C7F441AC932F; Mon, 9 May 2022 21:47:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kxvsd1qgVz3GMY; Mon, 9 May 2022 21:47:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652132853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pc2NXLz0AdaojyYAQdR/S8cWcNBRPOeFU6hsRtARpE0=; b=RRUUL3HbPIUPoGh+fQ0/NAcbJKGeBcUt073s5dxIURePyE1PbcgW3Fn9rj7IzEMIZjcSqR eRABXkbbLODVfCxnO3/81MFjl3TA1uk4DEFQsVw1M16rPyXaIpSp8uXvlyFetZS78g+Nve jBwq+zowxu1MkL1LKvmzLdcIQBqKInzjfYXFL9XmaE7f1ASt/xrky0LvYIRFAzqnfPUoCe FOS3KNwqvRg/vUSsgjhdrkeOTAUcIQW1np+WRgxRh0KOb4GVmuaioz05xJHP8v0GTSj187 RNLrdPJhS/3xdCOs97dbHPs1SEThnfl1kZw7u8Q+zkky4P+r++EM2HlokUYvIQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0D39918AF6; Mon, 9 May 2022 21:47:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 249LlWLp079797; Mon, 9 May 2022 21:47:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 249LlWkQ079795; Mon, 9 May 2022 21:47:32 GMT (envelope-from git) Date: Mon, 9 May 2022 21:47:32 GMT Message-Id: <202205092147.249LlWkQ079795@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 829a13fa7f4e - main - Remove unused etherswitch_devclass. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 829a13fa7f4eeece60dddef6e96b0d56e6ad0e2e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652132853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pc2NXLz0AdaojyYAQdR/S8cWcNBRPOeFU6hsRtARpE0=; b=g0MQ/sjLwkPG3wpDDPPg2s4B4VrS7fGykMOPP8a9xNysdlhFk+BVg+2J7NTecbMDEcVki7 09yhYMneNsK2I9WtG+n9ZEAtFAdpgKJK5LGkUOCWu3Q2yp3LcwY1CgXs3Oksu7MOtgNrlf CSzj34g8dc6Fy/KyOOiaAUpwGbhbhYS1hLgra8JgNlrfXBqLFMLa27q14PGse5E2SQXwzb aSAK4DW3tzX8XMFXvCGEPS0Eip5dJwQ5uDBUJpYWd6S7i8ct0hjWuYSWKFsIkScdvRPrAI QU+52tAt8XeFs9wNyv4O3WhYzBc+HhUJ2JdpFFRvmIpK3vbhsr4mv4F9HLszXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652132853; a=rsa-sha256; cv=none; b=AsGxZOTFzH5V/Cs/iM6pvGmQnPdeahm2Arqg4DHD27xjffYcs1sMJHX64d3AKbEH5V/lDI Ah2B5dt1BZexVHWPfjhgPA8zHJkSkQVQjQRzCOI4mPtDrfi90dVAXSsGZWxY+Kpr+XnRhD XyBVu3VE9WQsRBc0L3OpAvIN8EWAgbOHWKNdV1Edl+0uxg/hjbzEpm3drbdU8oHpjR2K/c M80mONfxS2qv738uH6jw9AwejJzyU+LaQ0Y9EIQ/4YyC7lOhxD+1OjsLk6xeFAu+0LPcUq nsEqL5O6ZrAFyrFIScz+S8vhzoKOt45sfizG2BG+bWlG0l7qmWBB+Hj+1X3VsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=829a13fa7f4eeece60dddef6e96b0d56e6ad0e2e commit 829a13fa7f4eeece60dddef6e96b0d56e6ad0e2e Author: John Baldwin AuthorDate: 2022-05-09 21:26:43 +0000 Commit: John Baldwin CommitDate: 2022-05-09 21:26:43 +0000 Remove unused etherswitch_devclass. --- sys/arm/ti/cpsw/if_cpsw.c | 2 +- sys/dev/etherswitch/ar40xx/ar40xx_main.c | 2 +- sys/dev/etherswitch/arswitch/arswitch.c | 2 +- sys/dev/etherswitch/e6000sw/e6000sw.c | 3 +-- sys/dev/etherswitch/e6000sw/e6060sw.c | 2 +- sys/dev/etherswitch/etherswitch.c | 2 -- sys/dev/etherswitch/etherswitch.h | 1 - sys/dev/etherswitch/felix/felix.c | 3 +-- sys/dev/etherswitch/infineon/adm6996fc.c | 3 +-- sys/dev/etherswitch/ip17x/ip17x.c | 2 +- sys/dev/etherswitch/micrel/ksz8995ma.c | 3 +-- sys/dev/etherswitch/mtkswitch/mtkswitch.c | 3 +-- sys/dev/etherswitch/rtl8366/rtl8366rb.c | 2 +- sys/dev/etherswitch/ukswitch/ukswitch.c | 2 +- 14 files changed, 12 insertions(+), 20 deletions(-) diff --git a/sys/arm/ti/cpsw/if_cpsw.c b/sys/arm/ti/cpsw/if_cpsw.c index a10538457974..bac39be747e3 100644 --- a/sys/arm/ti/cpsw/if_cpsw.c +++ b/sys/arm/ti/cpsw/if_cpsw.c @@ -235,7 +235,7 @@ static driver_t cpswp_driver = { static devclass_t cpswp_devclass; #ifdef CPSW_ETHERSWITCH -DRIVER_MODULE(etherswitch, cpswss, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, cpswss, etherswitch_driver, 0, 0); MODULE_DEPEND(cpswss, etherswitch, 1, 1, 1); #endif diff --git a/sys/dev/etherswitch/ar40xx/ar40xx_main.c b/sys/dev/etherswitch/ar40xx/ar40xx_main.c index 9daf2e355469..ec31d5cd9d5d 100644 --- a/sys/dev/etherswitch/ar40xx/ar40xx_main.c +++ b/sys/dev/etherswitch/ar40xx/ar40xx_main.c @@ -961,7 +961,7 @@ DRIVER_MODULE(ar40xx, simplebus, ar40xx_driver, ar40xx_devclass, 0, 0); DRIVER_MODULE(ar40xx, ofwbus, ar40xx_driver, ar40xx_devclass, 0, 0); DRIVER_MODULE(miibus, ar40xx, miibus_driver, 0, 0); DRIVER_MODULE(mdio, ar40xx, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, ar40xx, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, ar40xx, etherswitch_driver, 0, 0); MODULE_DEPEND(ar40xx, mdio, 1, 1, 1); MODULE_DEPEND(ar40xx, miibus, 1, 1, 1); MODULE_DEPEND(ar40xx, etherswitch, 1, 1, 1); diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c index 7202d22f1582..eb4c9630e099 100644 --- a/sys/dev/etherswitch/arswitch/arswitch.c +++ b/sys/dev/etherswitch/arswitch/arswitch.c @@ -1349,7 +1349,7 @@ static devclass_t arswitch_devclass; DRIVER_MODULE(arswitch, mdio, arswitch_driver, arswitch_devclass, 0, 0); DRIVER_MODULE(miibus, arswitch, miibus_driver, 0, 0); DRIVER_MODULE(mdio, arswitch, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, arswitch, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, arswitch, etherswitch_driver, 0, 0); MODULE_VERSION(arswitch, 1); MODULE_DEPEND(arswitch, miibus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(arswitch, etherswitch, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index b93f278ed432..bd7575b21443 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -186,8 +186,7 @@ DEFINE_CLASS_0(e6000sw, e6000sw_driver, e6000sw_methods, sizeof(e6000sw_softc_t)); DRIVER_MODULE(e6000sw, mdio, e6000sw_driver, e6000sw_devclass, 0, 0); -DRIVER_MODULE(etherswitch, e6000sw, etherswitch_driver, etherswitch_devclass, 0, - 0); +DRIVER_MODULE(etherswitch, e6000sw, etherswitch_driver, 0, 0); DRIVER_MODULE(miibus, e6000sw, miibus_driver, 0, 0); MODULE_DEPEND(e6000sw, mdio, 1, 1, 1); diff --git a/sys/dev/etherswitch/e6000sw/e6060sw.c b/sys/dev/etherswitch/e6000sw/e6060sw.c index 66cfa7007318..b1af8151c978 100644 --- a/sys/dev/etherswitch/e6000sw/e6060sw.c +++ b/sys/dev/etherswitch/e6000sw/e6060sw.c @@ -1027,7 +1027,7 @@ static devclass_t e6060sw_devclass; DRIVER_MODULE(e6060sw, mdio, e6060sw_driver, e6060sw_devclass, 0, 0); DRIVER_MODULE(miibus, e6060sw, miibus_driver, 0, 0); DRIVER_MODULE(mdio, e6060sw, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, e6060sw, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, e6060sw, etherswitch_driver, 0, 0); MODULE_VERSION(e6060sw, 1); MODULE_DEPEND(e6060sw, miibus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(e6060sw, etherswitch, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/etherswitch.c b/sys/dev/etherswitch/etherswitch.c index 903bbc12acd3..a7bf8298d58a 100644 --- a/sys/dev/etherswitch/etherswitch.c +++ b/sys/dev/etherswitch/etherswitch.c @@ -56,8 +56,6 @@ static int etherswitch_attach(device_t); static int etherswitch_detach(device_t); static void etherswitch_identify(driver_t *driver, device_t parent); -devclass_t etherswitch_devclass; - static device_method_t etherswitch_methods[] = { /* device interface */ DEVMETHOD(device_identify, etherswitch_identify), diff --git a/sys/dev/etherswitch/etherswitch.h b/sys/dev/etherswitch/etherswitch.h index 9d87be03e26d..00a44fa6724d 100644 --- a/sys/dev/etherswitch/etherswitch.h +++ b/sys/dev/etherswitch/etherswitch.h @@ -9,7 +9,6 @@ #include #ifdef _KERNEL -extern devclass_t etherswitch_devclass; extern driver_t etherswitch_driver; #endif /* _KERNEL */ diff --git a/sys/dev/etherswitch/felix/felix.c b/sys/dev/etherswitch/felix/felix.c index 82a1b474c1ff..e93cc59621fa 100644 --- a/sys/dev/etherswitch/felix/felix.c +++ b/sys/dev/etherswitch/felix/felix.c @@ -147,8 +147,7 @@ DEFINE_CLASS_0(felix, felix_driver, felix_methods, DRIVER_MODULE_ORDERED(felix, pci, felix_driver, felix_devclass, NULL, NULL, SI_ORDER_ANY); DRIVER_MODULE(miibus, felix, miibus_fdt_driver, NULL, NULL); -DRIVER_MODULE(etherswitch, felix, etherswitch_driver, etherswitch_devclass, - NULL, NULL); +DRIVER_MODULE(etherswitch, felix, etherswitch_driver, NULL, NULL); MODULE_VERSION(felix, 1); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, felix, felix_pci_ids, nitems(felix_pci_ids) - 1); diff --git a/sys/dev/etherswitch/infineon/adm6996fc.c b/sys/dev/etherswitch/infineon/adm6996fc.c index 86206ae4747e..b6fd585de57e 100644 --- a/sys/dev/etherswitch/infineon/adm6996fc.c +++ b/sys/dev/etherswitch/infineon/adm6996fc.c @@ -857,8 +857,7 @@ static devclass_t adm6996fc_devclass; DRIVER_MODULE(adm6996fc, mdio, adm6996fc_driver, adm6996fc_devclass, 0, 0); DRIVER_MODULE(miibus, adm6996fc, miibus_driver, 0, 0); DRIVER_MODULE(mdio, adm6996fc, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, adm6996fc, etherswitch_driver, etherswitch_devclass, - 0, 0); +DRIVER_MODULE(etherswitch, adm6996fc, etherswitch_driver, 0, 0); MODULE_VERSION(adm6996fc, 1); MODULE_DEPEND(adm6996fc, miibus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(adm6996fc, etherswitch, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/ip17x/ip17x.c b/sys/dev/etherswitch/ip17x/ip17x.c index 48098fdd61b3..8adabe4dc6b8 100644 --- a/sys/dev/etherswitch/ip17x/ip17x.c +++ b/sys/dev/etherswitch/ip17x/ip17x.c @@ -650,7 +650,7 @@ static devclass_t ip17x_devclass; DRIVER_MODULE(ip17x, mdio, ip17x_driver, ip17x_devclass, 0, 0); DRIVER_MODULE(miibus, ip17x, miibus_driver, 0, 0); -DRIVER_MODULE(etherswitch, ip17x, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, ip17x, etherswitch_driver, 0, 0); MODULE_VERSION(ip17x, 1); #ifdef FDT diff --git a/sys/dev/etherswitch/micrel/ksz8995ma.c b/sys/dev/etherswitch/micrel/ksz8995ma.c index a9d2e4cf4c2f..5054c01fde2c 100644 --- a/sys/dev/etherswitch/micrel/ksz8995ma.c +++ b/sys/dev/etherswitch/micrel/ksz8995ma.c @@ -958,8 +958,7 @@ static devclass_t ksz8995ma_devclass; DRIVER_MODULE(ksz8995ma, spibus, ksz8995ma_driver, ksz8995ma_devclass, 0, 0); DRIVER_MODULE(miibus, ksz8995ma, miibus_driver, 0, 0); -DRIVER_MODULE(etherswitch, ksz8995ma, etherswitch_driver, etherswitch_devclass, - 0, 0); +DRIVER_MODULE(etherswitch, ksz8995ma, etherswitch_driver, 0, 0); MODULE_VERSION(ksz8995ma, 1); MODULE_DEPEND(ksz8995ma, spibus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(ksz8995ma, miibus, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/mtkswitch/mtkswitch.c b/sys/dev/etherswitch/mtkswitch/mtkswitch.c index 53d426e32ec1..3430675406a5 100644 --- a/sys/dev/etherswitch/mtkswitch/mtkswitch.c +++ b/sys/dev/etherswitch/mtkswitch/mtkswitch.c @@ -668,8 +668,7 @@ static devclass_t mtkswitch_devclass; DRIVER_MODULE(mtkswitch, simplebus, mtkswitch_driver, mtkswitch_devclass, 0, 0); DRIVER_MODULE(miibus, mtkswitch, miibus_driver, 0, 0); DRIVER_MODULE(mdio, mtkswitch, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, mtkswitch, etherswitch_driver, etherswitch_devclass, - 0, 0); +DRIVER_MODULE(etherswitch, mtkswitch, etherswitch_driver, 0, 0); MODULE_VERSION(mtkswitch, 1); MODULE_DEPEND(mtkswitch, miibus, 1, 1, 1); MODULE_DEPEND(mtkswitch, etherswitch, 1, 1, 1); diff --git a/sys/dev/etherswitch/rtl8366/rtl8366rb.c b/sys/dev/etherswitch/rtl8366/rtl8366rb.c index 0a50359bd9eb..010896c03335 100644 --- a/sys/dev/etherswitch/rtl8366/rtl8366rb.c +++ b/sys/dev/etherswitch/rtl8366/rtl8366rb.c @@ -962,7 +962,7 @@ static devclass_t rtl8366rb_devclass; DRIVER_MODULE(rtl8366rb, iicbus, rtl8366rb_driver, rtl8366rb_devclass, 0, 0); DRIVER_MODULE(miibus, rtl8366rb, miibus_driver, 0, 0); DRIVER_MODULE(mdio, rtl8366rb, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, rtl8366rb, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, rtl8366rb, etherswitch_driver, 0, 0); MODULE_VERSION(rtl8366rb, 1); MODULE_DEPEND(rtl8366rb, iicbus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(rtl8366rb, miibus, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/ukswitch/ukswitch.c b/sys/dev/etherswitch/ukswitch/ukswitch.c index b0d302b76e9b..683c0355f4c0 100644 --- a/sys/dev/etherswitch/ukswitch/ukswitch.c +++ b/sys/dev/etherswitch/ukswitch/ukswitch.c @@ -578,7 +578,7 @@ static devclass_t ukswitch_devclass; DRIVER_MODULE(ukswitch, mdio, ukswitch_driver, ukswitch_devclass, 0, 0); DRIVER_MODULE(miibus, ukswitch, miibus_driver, 0, 0); DRIVER_MODULE(mdio, ukswitch, mdio_driver, 0, 0); -DRIVER_MODULE(etherswitch, ukswitch, etherswitch_driver, etherswitch_devclass, 0, 0); +DRIVER_MODULE(etherswitch, ukswitch, etherswitch_driver, 0, 0); MODULE_VERSION(ukswitch, 1); MODULE_DEPEND(ukswitch, miibus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(ukswitch, etherswitch, 1, 1, 1); /* XXX which versions? */