Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2022 19:23:02 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: 8d1611432f42 - main - smbus smb: Remove unused devclass argument to DRIVER_MODULE.
Message-ID:  <202205091923.249JN2vR085644@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=8d1611432f425a97714543af30379f6ad9ed4b7c

commit 8d1611432f425a97714543af30379f6ad9ed4b7c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 19:22:02 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 19:22:02 +0000

    smbus smb: Remove unused devclass argument to DRIVER_MODULE.
---
 sys/dev/smbus/smb.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index b9916dd29a7f..70a9fe561883 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -57,8 +57,6 @@ static int smb_probe(device_t);
 static int smb_attach(device_t);
 static int smb_detach(device_t);
 
-static devclass_t smb_devclass;
-
 static device_method_t smb_methods[] = {
 	/* device interface */
 	DEVMETHOD(device_identify,	smb_identify),
@@ -277,6 +275,6 @@ smbioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t
 	return (error);
 }
 
-DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0);
+DRIVER_MODULE(smb, smbus, smb_driver, 0, 0);
 MODULE_DEPEND(smb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
 MODULE_VERSION(smb, 1);



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