aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-05-10 17:21:39 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-10 17:21:39 +0000
commit0018a3041d856be18e47a25b415ddef9595fd8c4 (patch)
treeb3934f0c18045de22c90401a9e9e71b1ae8b3c2d
parent3a3a104edf25d94495f7632c602e59d50a8e2178 (diff)
downloadsrc-0018a3041d856be18e47a25b415ddef9595fd8c4.tar.gz
src-0018a3041d856be18e47a25b415ddef9595fd8c4.zip
Remove unused sdiob_devclass.
-rw-r--r--sys/dev/sdio/sdiob.c3
1 files changed, 1 insertions, 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",