git: 716debed62eb - main - twe/tws: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 23:24:59 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=716debed62eb255a8f6a5cbcc50522c2ea2f342a
commit 716debed62eb255a8f6a5cbcc50522c2ea2f342a
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-06 22:46:56 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:46:56 +0000
twe/tws: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/dev/twe/twe_freebsd.c | 7 ++-----
sys/dev/tws/tws.c | 4 +---
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/sys/dev/twe/twe_freebsd.c b/sys/dev/twe/twe_freebsd.c
index d5425fd2d851..5aae9460bad4 100644
--- a/sys/dev/twe/twe_freebsd.c
+++ b/sys/dev/twe/twe_freebsd.c
@@ -44,8 +44,6 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
-static devclass_t twe_devclass;
-
#ifdef TWE_DEBUG
static u_int32_t twed_bio_in;
#define TWED_BIO_IN twed_bio_in++
@@ -154,7 +152,7 @@ static driver_t twe_pci_driver = {
sizeof(struct twe_softc)
};
-DRIVER_MODULE(twe, pci, twe_pci_driver, twe_devclass, 0, 0);
+DRIVER_MODULE(twe, pci, twe_pci_driver, 0, 0);
/********************************************************************************
* Match a 3ware Escalade ATA RAID controller.
@@ -690,8 +688,7 @@ static driver_t twed_driver = {
sizeof(struct twed_softc)
};
-static devclass_t twed_devclass;
-DRIVER_MODULE(twed, twe, twed_driver, twed_devclass, 0, 0);
+DRIVER_MODULE(twed, twe, twed_driver, 0, 0);
/*
* Disk device control interface.
diff --git a/sys/dev/tws/tws.c b/sys/dev/tws/tws.c
index de7d20bf900b..74c69d04b7d8 100644
--- a/sys/dev/tws/tws.c
+++ b/sys/dev/tws/tws.c
@@ -881,10 +881,8 @@ static driver_t tws_driver = {
sizeof(struct tws_softc)
};
-static devclass_t tws_devclass;
-
/* DEFINE_CLASS_0(tws, tws_driver, tws_methods, sizeof(struct tws_softc)); */
-DRIVER_MODULE(tws, pci, tws_driver, tws_devclass, 0, 0);
+DRIVER_MODULE(tws, pci, tws_driver, 0, 0);
MODULE_DEPEND(tws, cam, 1, 1, 1);
MODULE_DEPEND(tws, pci, 1, 1, 1);