Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2022 22:43:03 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: f859852f2529 - main - ath: Remove unused devclass arguments to DRIVER_MODULE.
Message-ID:  <202205062243.246Mh33l019178@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=f859852f252922a45ae44348e87085f0e07ac8e2

commit f859852f252922a45ae44348e87085f0e07ac8e2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 21:00:49 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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 */



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