From nobody Fri May 6 22:43:03 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 302C01AB869F; Fri, 6 May 2022 22:43:04 +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 4Kw5F34Sy6z3vPx; Fri, 6 May 2022 22:43:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651876984; 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=IGaYr31L2JmM2fnT4ySN+NlYa0B4pGT2VsDcPxUDrSw=; b=QfdFQeLqeGkMJnwYivjrjGtx6kdQGb4qqPLtJ1qydl3wsBLiCJYK43CHWDoZS7w064RBwM HxFW5t8mUIg4YzC20tq3HK+vSWxn7IbmM4+0eNNSLlxSaeaMAad3frOIdjCS3ri8F0bq/J p+UkmzoKWZtx1blHakU337vilxXzu+HorR9gxdGsTfxf0L8FieGj0avxfzRbQbdNPlKWFW YS3L9ZomYaqR6gCwakSlMjCw+kM7iP0SOGbXa66XI/OUpG8HnjB1N6PswYfQ8HKoVLayPG zfefdVpgzokPApa3smrEInl3MMwL65OewgvwEk5OAreqZGn0Db/ZPKEuHqyMXQ== 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 6638C24AE8; Fri, 6 May 2022 22:43:03 +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 246Mh3Ai019179; Fri, 6 May 2022 22:43:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246Mh33l019178; Fri, 6 May 2022 22:43:03 GMT (envelope-from git) Date: Fri, 6 May 2022 22:43:03 GMT Message-Id: <202205062243.246Mh33l019178@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: f859852f2529 - main - ath: Remove unused devclass arguments to DRIVER_MODULE. 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: f859852f252922a45ae44348e87085f0e07ac8e2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651876984; 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=IGaYr31L2JmM2fnT4ySN+NlYa0B4pGT2VsDcPxUDrSw=; b=q+CJ8OthrD5j2WhOTkUXR2EZ+DkmiNRyKtm6JGvGppl4Ovj2gTu1rhfYZ5/5bO9kJ0f6k5 EvgsB3I1fM6VlVHyyIUQztaS+9/unbPVxm1iFIEclo9VVL0/nxqgXiDBQjnr1h5qbq+az5 8yiB8JMI47NDk82pjeZtBkDup/vYzXlkXpgKNUat+oj+IFbnUMum8JE4K5wPTda6RUJIux s7tQbgg6Hh84z/ORh+Or2DXzeaYh7raFipFD7VvOQE2U/j06A/NW8wpvBwhPswgNEqsioG bys3XUkNgZDRO/i3F9kcJKqiAcLJmCx+kxpnpo+/4PfuncidStbP60m916zJHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651876984; a=rsa-sha256; cv=none; b=xuBFS7z9gIHTga43Q8UdDHtvizauLBlx1d5X2y38p/xx5VetsF91yWXNC/3KkGdmEKlCGW wPvo1RAsAxzT2PdENDmQ7GFUigzVhO1emDppTY5F+nilC1Z/zxIvuy372JPjbGP29OV/VT zgZjYX1y4M8FX3Az0sAJjHEj+rXvScqrPD/f7A70BI0zKjNPrc+3wwWfrccm1ofAYgqhtz UcX2E7guTwtpBLxbBVE+TCl2bdGmvHHjKHspHSKri4y+R3WumiOZyn/ksN53YmstLgWQLg NBKGfY/Prjkp5FgkkAz6uDsCfNB+tFIIi1ySKwSF4v75tX2I9b32tjDLV+2iyg== 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=f859852f252922a45ae44348e87085f0e07ac8e2 commit f859852f252922a45ae44348e87085f0e07ac8e2 Author: John Baldwin AuthorDate: 2022-04-19 21:00:49 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:39:29 +0000 ath: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ath/if_ath_ahb.c | 7 ++++--- sys/dev/ath/if_ath_pci.c | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/dev/ath/if_ath_ahb.c b/sys/dev/ath/if_ath_ahb.c index ea329589f1ab..61041551c60d 100644 --- a/sys/dev/ath/if_ath_ahb.c +++ b/sys/dev/ath/if_ath_ahb.c @@ -338,14 +338,15 @@ static device_method_t ath_ahb_methods[] = { DEVMETHOD(device_resume, ath_ahb_resume), { 0,0 } }; + static driver_t ath_ahb_driver = { "ath", ath_ahb_methods, sizeof (struct ath_ahb_softc) }; -static devclass_t ath_devclass; -DRIVER_MODULE(if_ath_ahb, nexus, ath_ahb_driver, ath_devclass, 0, 0); -DRIVER_MODULE(if_ath_ahb, apb, ath_ahb_driver, ath_devclass, 0, 0); + +DRIVER_MODULE(if_ath_ahb, nexus, ath_ahb_driver, 0, 0); +DRIVER_MODULE(if_ath_ahb, apb, ath_ahb_driver, 0, 0); MODULE_VERSION(if_ath_ahb, 1); MODULE_DEPEND(if_ath_ahb, wlan, 1, 1, 1); /* 802.11 media layer */ MODULE_DEPEND(if_ath_ahb, ath_main, 1, 1, 1); /* if_ath driver */ diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index d3b130e091dc..4ec9829ad3df 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -385,13 +385,14 @@ static device_method_t ath_pci_methods[] = { DEVMETHOD(device_resume, ath_pci_resume), { 0,0 } }; + static driver_t ath_pci_driver = { "ath", ath_pci_methods, sizeof (struct ath_pci_softc) }; -static devclass_t ath_devclass; -DRIVER_MODULE(if_ath_pci, pci, ath_pci_driver, ath_devclass, 0, 0); + +DRIVER_MODULE(if_ath_pci, pci, ath_pci_driver, 0, 0); MODULE_VERSION(if_ath_pci, 1); MODULE_DEPEND(if_ath_pci, wlan, 1, 1, 1); /* 802.11 media layer */ MODULE_DEPEND(if_ath_pci, ath_main, 1, 1, 1); /* if_ath driver */