Date: Fri, 6 May 2022 23:24:48 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1fdc3ba41b92 - main - siis: Remove unused devclass arguments to DRIVER_MODULE. Message-ID: <202205062324.246NOmMm075034@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1fdc3ba41b92cd3d3f07e571468e342e777ff32b commit 1fdc3ba41b92cd3d3f07e571468e342e777ff32b Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-06 22:46:56 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:46:56 +0000 siis: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/siis/siis.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c index 93df7c4f1494..1724b400903f 100644 --- a/sys/dev/siis/siis.c +++ b/sys/dev/siis/siis.c @@ -423,7 +423,6 @@ siis_get_dma_tag(device_t bus, device_t child) return (bus_get_dma_tag(bus)); } -devclass_t siis_devclass; static device_method_t siis_methods[] = { DEVMETHOD(device_probe, siis_probe), DEVMETHOD(device_attach, siis_attach), @@ -439,12 +438,14 @@ static device_method_t siis_methods[] = { DEVMETHOD(bus_get_dma_tag, siis_get_dma_tag), { 0, 0 } }; + static driver_t siis_driver = { "siis", siis_methods, sizeof(struct siis_controller) }; -DRIVER_MODULE(siis, pci, siis_driver, siis_devclass, 0, 0); + +DRIVER_MODULE(siis, pci, siis_driver, 0, 0); MODULE_VERSION(siis, 1); MODULE_DEPEND(siis, cam, 1, 1, 1); @@ -627,7 +628,6 @@ siis_ch_resume(device_t dev) return (0); } -devclass_t siisch_devclass; static device_method_t siisch_methods[] = { DEVMETHOD(device_probe, siis_ch_probe), DEVMETHOD(device_attach, siis_ch_attach), @@ -636,12 +636,14 @@ static device_method_t siisch_methods[] = { DEVMETHOD(device_resume, siis_ch_resume), { 0, 0 } }; + static driver_t siisch_driver = { "siisch", siisch_methods, sizeof(struct siis_channel) }; -DRIVER_MODULE(siisch, siis, siisch_driver, siis_devclass, 0, 0); + +DRIVER_MODULE(siisch, siis, siisch_driver, 0, 0); static void siis_ch_led(void *priv, int onoff)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205062324.246NOmMm075034>