git: 05bdf34a9d20 - main - Remove unused bhndb_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:32 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=05bdf34a9d20fc198fe855528e6a23135460c4c6 commit 05bdf34a9d20fc198fe855528e6a23135460c4c6 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:00 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:00 +0000 Remove unused bhndb_devclass. --- sys/dev/bhnd/bhndb/bhndb.c | 2 -- sys/dev/bhnd/bhndb/bhndb.h | 1 - sys/dev/bwn/if_bwn_pci.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/bhnd/bhndb/bhndb.c b/sys/dev/bhnd/bhndb/bhndb.c index 323972f5585c..a5b4ea2273a8 100644 --- a/sys/dev/bhnd/bhndb/bhndb.c +++ b/sys/dev/bhnd/bhndb/bhndb.c @@ -2304,8 +2304,6 @@ static device_method_t bhndb_methods[] = { DEVMETHOD_END }; -devclass_t bhndb_devclass; - DEFINE_CLASS_0(bhndb, bhndb_driver, bhndb_methods, sizeof(struct bhndb_softc)); MODULE_VERSION(bhndb, 1); diff --git a/sys/dev/bhnd/bhndb/bhndb.h b/sys/dev/bhnd/bhndb/bhndb.h index 59b237e07756..cf3432a7710c 100644 --- a/sys/dev/bhnd/bhndb/bhndb.h +++ b/sys/dev/bhnd/bhndb/bhndb.h @@ -43,7 +43,6 @@ #include "bhndb_bus_if.h" -extern devclass_t bhndb_devclass; DECLARE_CLASS(bhnd_bhndb_driver); int bhndb_attach_bridge(device_t parent, device_t *bhndb, int unit); diff --git a/sys/dev/bwn/if_bwn_pci.c b/sys/dev/bwn/if_bwn_pci.c index 51ff56184f8a..63f3f78a18f1 100644 --- a/sys/dev/bwn/if_bwn_pci.c +++ b/sys/dev/bwn/if_bwn_pci.c @@ -297,7 +297,7 @@ MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, bwn_siba, siba_devices, nitems(siba_devices) - 1); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, bwn_bcma, bcma_devices, nitems(bcma_devices) - 1); -DRIVER_MODULE(bhndb, bwn_pci, bhndb_pci_driver, bhndb_devclass, NULL, NULL); +DRIVER_MODULE(bhndb, bwn_pci, bhndb_pci_driver, NULL, NULL); MODULE_DEPEND(bwn_pci, bwn, 1, 1, 1); MODULE_DEPEND(bwn_pci, bhnd, 1, 1, 1);