Date: Fri, 6 May 2022 23:25:31 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 95d60710bed1 - main - axgbe: Remove unused devclass arguments to DRIVER_MODULE. Message-ID: <202205062325.246NPVPY075994@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=95d60710bed1793f7679006579ee09a9d45290c3 commit 95d60710bed1793f7679006579ee09a9d45290c3 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-06 22:46:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205062325.246NPVPY075994>