Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 17:36:49 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: 0018a3041d85 - main - Remove unused sdiob_devclass.
Message-ID:  <202205101736.24AHan77099609@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=0018a3041d856be18e47a25b415ddef9595fd8c4

commit 0018a3041d856be18e47a25b415ddef9595fd8c4
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

    Remove unused sdiob_devclass.
---
 sys/dev/sdio/sdiob.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/sdio/sdiob.c b/sys/dev/sdio/sdiob.c
index b21ee3b7ce35..abe3a2d50ebb 100644
--- a/sys/dev/sdio/sdiob.c
+++ b/sys/dev/sdio/sdiob.c
@@ -638,7 +638,6 @@ static device_method_t sdiob_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t sdiob_devclass;
 static driver_t sdiob_driver = {
 	SDIOB_NAME_S,
 	sdiob_methods,
@@ -947,7 +946,7 @@ sdio_newbus_sim_add(struct sdiob_softc *sc)
 
 	bus_topo_lock();
 	error = devclass_add_driver(bus_devclass, &sdiob_driver,
-	    BUS_PASS_DEFAULT, &sdiob_devclass);
+	    BUS_PASS_DEFAULT, NULL);
 	bus_topo_unlock();
 	if (error != 0) {
 		printf("%s: Failed to add driver to devclass: %d.\n",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205101736.24AHan77099609>