git: 9cd54db59d08 - main - mlx: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:43 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9cd54db59d08d5452f51d993c85f2a470a9473fe commit 9cd54db59d08d5452f51d993c85f2a470a9473fe Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-20 16:58:52 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:31 +0000 mlx: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/mlx/mlx.c | 2 -- sys/dev/mlx/mlx_disk.c | 4 +--- sys/dev/mlx/mlx_pci.c | 2 +- sys/dev/mlx/mlxvar.h | 3 --- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index 1afdccdc49c5..b24033f1598c 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -64,8 +64,6 @@ static struct cdevsw mlx_cdevsw = { .d_name = "mlx", }; -devclass_t mlx_devclass; - /* * Per-interface accessor methods */ diff --git a/sys/dev/mlx/mlx_disk.c b/sys/dev/mlx/mlx_disk.c index bc487d1330a0..2eb4ee1c106c 100644 --- a/sys/dev/mlx/mlx_disk.c +++ b/sys/dev/mlx/mlx_disk.c @@ -60,8 +60,6 @@ static int mlxd_probe(device_t dev); static int mlxd_attach(device_t dev); static int mlxd_detach(device_t dev); -devclass_t mlxd_devclass; - static device_method_t mlxd_methods[] = { DEVMETHOD(device_probe, mlxd_probe), DEVMETHOD(device_attach, mlxd_attach), @@ -75,7 +73,7 @@ static driver_t mlxd_driver = { sizeof(struct mlxd_softc) }; -DRIVER_MODULE(mlxd, mlx, mlxd_driver, mlxd_devclass, 0, 0); +DRIVER_MODULE(mlxd, mlx, mlxd_driver, 0, 0); static int mlxd_open(struct disk *dp) diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c index a61701d54e58..b5d7bddef3b6 100644 --- a/sys/dev/mlx/mlx_pci.c +++ b/sys/dev/mlx/mlx_pci.c @@ -75,7 +75,7 @@ static driver_t mlx_pci_driver = { sizeof(struct mlx_softc) }; -DRIVER_MODULE(mlx, pci, mlx_pci_driver, mlx_devclass, 0, 0); +DRIVER_MODULE(mlx, pci, mlx_pci_driver, 0, 0); struct mlx_ident { diff --git a/sys/dev/mlx/mlxvar.h b/sys/dev/mlx/mlxvar.h index 4db328f72b4b..4244b88ff101 100644 --- a/sys/dev/mlx/mlxvar.h +++ b/sys/dev/mlx/mlxvar.h @@ -206,9 +206,6 @@ extern d_open_t mlx_open; extern d_close_t mlx_close; extern d_ioctl_t mlx_ioctl; -extern devclass_t mlx_devclass; -extern devclass_t mlxd_devclass; - /* * Mylex System Disk driver */