From nobody Fri May 06 23:25:31 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 67C261AD1B2E; Fri, 6 May 2022 23:25: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 4Kw6B44FVJz3FXL; Fri, 6 May 2022 23:25:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879533; 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=zZDdXLkGJ9fFp0KAQptJXAikUJQe7TdcyErBCA/1YCM=; b=VSWcB4VXEfMeYg2+S6RC3xSXEhYYahy6I11icmmTsn1gjj/OcdMyNYvKIPD46hDgomsfNr qrKUP8pOKFZiNrTYtNJnqueJgcqCttSixMhrkGEX1qqxv6oId7CDQ8wPE1z5W5Fcd0lAqe idx+D4sT8Y3eWpCCjU73ymSHAcLJ6Jxc8+87g42xtkTBfgiCdq2ff6SuGApRf2fkjfrO9h RQhPW078mNnJ3Q+e02rLTpaShG7K85xtcUUp3jrSE9xqqFfh/FbFt9ZpMG4bsMkzt4YYrx x6XPojec4tS5LqsLgkoueSAtWDlY7JqKDfZ+K0Z3zQqrxhSeKOz8uCVvWnRFDA== 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 CB90B24E4B; Fri, 6 May 2022 23:25:31 +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 246NPVwU075995; Fri, 6 May 2022 23:25:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246NPVPY075994; Fri, 6 May 2022 23:25:31 GMT (envelope-from git) Date: Fri, 6 May 2022 23:25:31 GMT Message-Id: <202205062325.246NPVPY075994@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: 95d60710bed1 - main - axgbe: 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: 95d60710bed1793f7679006579ee09a9d45290c3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879533; 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=zZDdXLkGJ9fFp0KAQptJXAikUJQe7TdcyErBCA/1YCM=; b=vJe0o47+9aKGuNSMbBkixxYqnO/RRDej4yUI62OVpE6KaNVScAKlV3GFC1FBQV9vggE19l /E7aqJkeXdCFPAzGM3UaMX+jNC2jX+gYJoc0mdl1xwTNWN/O60UvrAlKVpX0abL3Gx4scV +b9uDNO4M2rf4EfhuOpScL++dAfJ6s03LZK9xRzdjATjtnav8epAPU4WLmwj7RRdGHIwIg JqpGN2M0rprCwtzMA4YF3TBWmM+4IjUQrXfql6QPt8lpchM9hzgVZRTdEPicn5LyZr47+C r3RKKzGJlAkrl2LHOiwkOIX/puH8kLfOMMzFzsxPSIURS1eD5B7SWAOtkcjPyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651879533; a=rsa-sha256; cv=none; b=HKbTwvmJJgF+OG37Frp4wD6EHyxNAFKBuushIpBHPmABZnyMIlQCZvxRyFv8zgqGRPuDur t95RzuX8TkEXKfGVdGPiOKdyAoX7oWCV2VCsSQgru14SnPe9X7xiNnfdm6PiN+nw67Gz1F rXHx797GkK8Vd/lBqWGstn3by5cIUQwmjy7C+pWmL4ng6llLXFAsHmvvikcCqYQMUX+yl7 JtnZeX+A81wpQRGbwML6BdjRwQNGw8bQtNAu+qKmkAIpm6VJfyS4Ynay86Mnjt+KBdT4fD L/U6g41e/mPbIn3OM/xsUD1PIaOy+77YZDwXFB0EHv3U22N0HymqVClre4WqkA== 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=95d60710bed1793f7679006579ee09a9d45290c3 commit 95d60710bed1793f7679006579ee09a9d45290c3 Author: John Baldwin AuthorDate: 2022-05-06 22:46:59 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:46:59 +0000 axgbe: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/axgbe/if_axgbe.c | 8 ++------ sys/dev/axgbe/if_axgbe_pci.c | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/dev/axgbe/if_axgbe.c b/sys/dev/axgbe/if_axgbe.c index 415c4016e3a9..342041c9dec4 100644 --- a/sys/dev/axgbe/if_axgbe.c +++ b/sys/dev/axgbe/if_axgbe.c @@ -570,11 +570,9 @@ static device_method_t axgbe_methods[] = { { 0, 0 } }; -static devclass_t axgbe_devclass; - DEFINE_CLASS_0(axgbe, axgbe_driver, axgbe_methods, sizeof(struct axgbe_softc)); -DRIVER_MODULE(axa, simplebus, axgbe_driver, axgbe_devclass, 0, 0); +DRIVER_MODULE(axa, simplebus, axgbe_driver, 0, 0); static struct ofw_compat_data phy_compat_data[] = { @@ -615,8 +613,6 @@ static device_method_t axgbephy_methods[] = { { 0, 0 } }; -static devclass_t axgbephy_devclass; - DEFINE_CLASS_0(axgbephy, axgbephy_driver, axgbephy_methods, 0); -EARLY_DRIVER_MODULE(axgbephy, simplebus, axgbephy_driver, axgbephy_devclass, +EARLY_DRIVER_MODULE(axgbephy, simplebus, axgbephy_driver, 0, 0, BUS_PASS_RESOURCE + BUS_PASS_ORDER_MIDDLE); diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c index beae662ce60d..21823151f74e 100644 --- a/sys/dev/axgbe/if_axgbe_pci.c +++ b/sys/dev/axgbe/if_axgbe_pci.c @@ -195,8 +195,7 @@ static driver_t ax_driver = { "ax", ax_methods, sizeof(struct axgbe_if_softc), }; -devclass_t ax_devclass; -DRIVER_MODULE(axp, pci, ax_driver, ax_devclass, 0, 0); +DRIVER_MODULE(axp, pci, ax_driver, 0, 0); DRIVER_MODULE(miibus, ax, miibus_driver, 0, 0); IFLIB_PNP_INFO(pci, ax_driver, axgbe_vendor_info_array);