Date: Mon, 9 May 2022 19:23:18 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: ffd39155e1d7 - main - ow: Remove unused devclass arguments to DRIVER_MODULE. Message-ID: <202205091923.249JNIkM085998@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=ffd39155e1d7c368f8168a4a218d68500fe0d176 commit ffd39155e1d7c368f8168a4a218d68500fe0d176 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:03 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:03 +0000 ow: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ow/ow.c | 4 +--- sys/dev/ow/ow_temp.c | 4 +--- sys/dev/ow/owc_gpiobus.c | 6 ++---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/dev/ow/ow.c b/sys/dev/ow/ow.c index c39f559c5699..0502f64ae6f0 100644 --- a/sys/dev/ow/ow.c +++ b/sys/dev/ow/ow.c @@ -699,8 +699,6 @@ ow_release_bus(device_t ndev, device_t pdev) OW_UNLOCK(sc); } -devclass_t ow_devclass; - static device_method_t ow_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ow_probe), @@ -728,5 +726,5 @@ static driver_t ow_driver = { sizeof(struct ow_softc), }; -DRIVER_MODULE(ow, owc, ow_driver, ow_devclass, 0, 0); +DRIVER_MODULE(ow, owc, ow_driver, 0, 0); MODULE_VERSION(ow, 1); diff --git a/sys/dev/ow/ow_temp.c b/sys/dev/ow/ow_temp.c index f1f34d7e71f4..ff7dc2430d4e 100644 --- a/sys/dev/ow/ow_temp.c +++ b/sys/dev/ow/ow_temp.c @@ -264,8 +264,6 @@ ow_temp_detach(device_t dev) return 0; } -devclass_t ow_temp_devclass; - static device_method_t ow_temp_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ow_temp_probe), @@ -280,5 +278,5 @@ static driver_t ow_temp_driver = { sizeof(struct ow_temp_softc), }; -DRIVER_MODULE(ow_temp, ow, ow_temp_driver, ow_temp_devclass, 0, 0); +DRIVER_MODULE(ow_temp, ow, ow_temp_driver, 0, 0); MODULE_DEPEND(ow_temp, ow, 1, 1, 1); diff --git a/sys/dev/ow/owc_gpiobus.c b/sys/dev/ow/owc_gpiobus.c index 4b8b2ab6f99e..467fc0d28c08 100644 --- a/sys/dev/ow/owc_gpiobus.c +++ b/sys/dev/ow/owc_gpiobus.c @@ -371,8 +371,6 @@ owc_gpiobus_reset_and_presence(device_t dev, struct ow_timing *t, int *bit) return (0); } -static devclass_t owc_gpiobus_devclass; - static device_method_t owc_gpiobus_methods[] = { /* Device interface */ DEVMETHOD(device_probe, owc_gpiobus_probe), @@ -393,10 +391,10 @@ static driver_t owc_gpiobus_driver = { }; #ifdef FDT -DRIVER_MODULE(owc_gpiobus, simplebus, owc_gpiobus_driver, owc_gpiobus_devclass, 0, 0); +DRIVER_MODULE(owc_gpiobus, simplebus, owc_gpiobus_driver, 0, 0); #endif -DRIVER_MODULE(owc_gpiobus, gpiobus, owc_gpiobus_driver, owc_gpiobus_devclass, 0, 0); +DRIVER_MODULE(owc_gpiobus, gpiobus, owc_gpiobus_driver, 0, 0); MODULE_DEPEND(owc_gpiobus, ow, 1, 1, 1); MODULE_DEPEND(owc_gpiobus, gpiobus, 1, 1, 1); MODULE_VERSION(owc_gpiobus, 1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205091923.249JNIkM085998>