git: 827252eefd1a - main - mvs: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:49 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=827252eefd1a22a9602ad03a272d7896b17e3371 commit 827252eefd1a22a9602ad03a272d7896b17e3371 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-20 17:06:57 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:32 +0000 mvs: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/mvs/mvs.c | 6 ++---- sys/dev/mvs/mvs.h | 2 -- sys/dev/mvs/mvs_pci.c | 2 +- sys/dev/mvs/mvs_soc.c | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sys/dev/mvs/mvs.c b/sys/dev/mvs/mvs.c index 96275ed6e572..40ce4c9a6157 100644 --- a/sys/dev/mvs/mvs.c +++ b/sys/dev/mvs/mvs.c @@ -576,8 +576,6 @@ mvs_set_edma_mode(device_t dev, enum mvs_edma_mode mode) ATA_OUTL(ch->r_mem, EDMA_CMD, EDMA_CMD_EENEDMA); } -devclass_t mvs_devclass; -devclass_t mvsch_devclass; static device_method_t mvsch_methods[] = { DEVMETHOD(device_probe, mvs_ch_probe), DEVMETHOD(device_attach, mvs_ch_attach), @@ -591,8 +589,8 @@ static driver_t mvsch_driver = { mvsch_methods, sizeof(struct mvs_channel) }; -DRIVER_MODULE(mvsch, mvs, mvsch_driver, mvsch_devclass, 0, 0); -DRIVER_MODULE(mvsch, sata, mvsch_driver, mvsch_devclass, 0, 0); +DRIVER_MODULE(mvsch, mvs, mvsch_driver, 0, 0); +DRIVER_MODULE(mvsch, sata, mvsch_driver, 0, 0); static void mvs_phy_check_events(device_t dev, u_int32_t serr) diff --git a/sys/dev/mvs/mvs.h b/sys/dev/mvs/mvs.h index 4a5e58ffbe72..acefb9023e69 100644 --- a/sys/dev/mvs/mvs.h +++ b/sys/dev/mvs/mvs.h @@ -631,8 +631,6 @@ struct mvs_intr_arg { u_int cause; }; -extern devclass_t mvs_devclass; - /* macros to hide busspace uglyness */ #define ATA_INB(res, offset) \ bus_read_1((res), (offset)) diff --git a/sys/dev/mvs/mvs_pci.c b/sys/dev/mvs/mvs_pci.c index 5f96fdf74fdc..a953f427931e 100644 --- a/sys/dev/mvs/mvs_pci.c +++ b/sys/dev/mvs/mvs_pci.c @@ -520,7 +520,7 @@ static driver_t mvs_driver = { mvs_methods, sizeof(struct mvs_controller) }; -DRIVER_MODULE(mvs, pci, mvs_driver, mvs_devclass, 0, 0); +DRIVER_MODULE(mvs, pci, mvs_driver, 0, 0); MODULE_PNP_INFO("W32:vendor/device", pci, mvs, mvs_ids, nitems(mvs_ids) - 1); MODULE_VERSION(mvs, 1); diff --git a/sys/dev/mvs/mvs_soc.c b/sys/dev/mvs/mvs_soc.c index 18b78602ab62..36a33d341aae 100644 --- a/sys/dev/mvs/mvs_soc.c +++ b/sys/dev/mvs/mvs_soc.c @@ -465,6 +465,6 @@ static driver_t mvs_driver = { mvs_methods, sizeof(struct mvs_controller) }; -DRIVER_MODULE(mvs, simplebus, mvs_driver, mvs_devclass, 0, 0); +DRIVER_MODULE(mvs, simplebus, mvs_driver, 0, 0); MODULE_VERSION(mvs, 1); MODULE_DEPEND(mvs, cam, 1, 1, 1);