git: 67eeba26829b - main - tsec: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:51 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=67eeba26829bd89709946d370f084694863096bc commit 67eeba26829bd89709946d370f084694863096bc 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 tsec: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/tsec/if_tsec.c | 1 - sys/dev/tsec/if_tsec.h | 2 -- sys/dev/tsec/if_tsec_fdt.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c index e8db204f07bc..979c0c4e62cc 100644 --- a/sys/dev/tsec/if_tsec.c +++ b/sys/dev/tsec/if_tsec.c @@ -109,7 +109,6 @@ static void tsec_offload_process_frame(struct tsec_softc *sc, static void tsec_setup_multicast(struct tsec_softc *sc); static int tsec_set_mtu(struct tsec_softc *sc, unsigned int mtu); -devclass_t tsec_devclass; DRIVER_MODULE(miibus, tsec, miibus_driver, 0, 0); MODULE_DEPEND(tsec, ether, 1, 1, 1); MODULE_DEPEND(tsec, miibus, 1, 1, 1); diff --git a/sys/dev/tsec/if_tsec.h b/sys/dev/tsec/if_tsec.h index 19ad346c85f6..dbd8bb7a035b 100644 --- a/sys/dev/tsec/if_tsec.h +++ b/sys/dev/tsec/if_tsec.h @@ -290,8 +290,6 @@ struct tsec_rx_fcb { == (TSEC_RX_FCB_TCP_UDP_FOUND | TSEC_RX_FCB_TCP_UDP_CSUM)) /* Prototypes */ -extern devclass_t tsec_devclass; - int tsec_attach(struct tsec_softc *sc); int tsec_detach(struct tsec_softc *sc); diff --git a/sys/dev/tsec/if_tsec_fdt.c b/sys/dev/tsec/if_tsec_fdt.c index cfad15b533cf..6b85bd6c6ff6 100644 --- a/sys/dev/tsec/if_tsec_fdt.c +++ b/sys/dev/tsec/if_tsec_fdt.c @@ -102,7 +102,7 @@ static driver_t tsec_fdt_driver = { sizeof(struct tsec_softc), }; -DRIVER_MODULE(tsec, simplebus, tsec_fdt_driver, tsec_devclass, 0, 0); +DRIVER_MODULE(tsec, simplebus, tsec_fdt_driver, 0, 0); static int tsec_fdt_probe(device_t dev)