git: da21fd61c3b2 - main - gxemul: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:40 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=da21fd61c3b2a26c5f1d51a139ebe7b395007455 commit da21fd61c3b2a26c5f1d51a139ebe7b395007455 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:39 +0000 gxemul: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/gxemul/disk/gxemul_disk.c | 3 +-- sys/dev/gxemul/ether/if_gx.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/dev/gxemul/disk/gxemul_disk.c b/sys/dev/gxemul/disk/gxemul_disk.c index d306e2bf53c5..b53beb6492d1 100644 --- a/sys/dev/gxemul/disk/gxemul_disk.c +++ b/sys/dev/gxemul/disk/gxemul_disk.c @@ -328,5 +328,4 @@ static driver_t gxemul_disk_driver = { sizeof (struct gxemul_disk_softc) }; -static devclass_t gxemul_disk_devclass; -DRIVER_MODULE(gxemul_disk, nexus, gxemul_disk_driver, gxemul_disk_devclass, 0, 0); +DRIVER_MODULE(gxemul_disk, nexus, gxemul_disk_driver, 0, 0); diff --git a/sys/dev/gxemul/ether/if_gx.c b/sys/dev/gxemul/ether/if_gx.c index 7e2493dba1a6..e7bb927fd674 100644 --- a/sys/dev/gxemul/ether/if_gx.c +++ b/sys/dev/gxemul/ether/if_gx.c @@ -109,9 +109,7 @@ static driver_t gx_driver = { sizeof (struct gx_softc), }; -static devclass_t gx_devclass; - -DRIVER_MODULE(gx, nexus, gx_driver, gx_devclass, 0, 0); +DRIVER_MODULE(gx, nexus, gx_driver, 0, 0); static void gx_identify(driver_t *drv, device_t parent)