git: c6d3976514d1 - main - Remove unused smbus_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:27 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c6d3976514d1650c96d7468ad83eacbd756b1a98 commit c6d3976514d1650c96d7468ad83eacbd756b1a98 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-20 16:26:33 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:30 +0000 Remove unused smbus_devclass. --- sys/dev/alpm/alpm.c | 2 +- sys/dev/amdpm/amdpm.c | 2 +- sys/dev/amdsmb/amdsmb.c | 2 +- sys/dev/ichsmb/ichsmb.c | 2 +- sys/dev/iicbus/iicsmb.c | 2 +- sys/dev/imcsmb/imcsmb.c | 2 +- sys/dev/intpm/intpm.c | 2 +- sys/dev/ismt/ismt.c | 2 +- sys/dev/nfsmb/nfsmb.c | 2 +- sys/dev/smbus/smbconf.h | 1 - sys/dev/smbus/smbus.c | 2 -- sys/dev/viapm/viapm.c | 2 +- 12 files changed, 10 insertions(+), 13 deletions(-) diff --git a/sys/dev/alpm/alpm.c b/sys/dev/alpm/alpm.c index f509d114dd00..8e41706c12a0 100644 --- a/sys/dev/alpm/alpm.c +++ b/sys/dev/alpm/alpm.c @@ -656,7 +656,7 @@ static driver_t alpm_driver = { }; DRIVER_MODULE(alpm, pci, alpm_driver, alpm_devclass, 0, 0); -DRIVER_MODULE(smbus, alpm, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, alpm, smbus_driver, 0, 0); MODULE_DEPEND(alpm, pci, 1, 1, 1); MODULE_DEPEND(alpm, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(alpm, 1); diff --git a/sys/dev/amdpm/amdpm.c b/sys/dev/amdpm/amdpm.c index fa53b2296cb1..0231028be7fe 100644 --- a/sys/dev/amdpm/amdpm.c +++ b/sys/dev/amdpm/amdpm.c @@ -663,7 +663,7 @@ static driver_t amdpm_driver = { }; DRIVER_MODULE(amdpm, pci, amdpm_driver, amdpm_devclass, 0, 0); -DRIVER_MODULE(smbus, amdpm, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, amdpm, smbus_driver, 0, 0); MODULE_DEPEND(amdpm, pci, 1, 1, 1); MODULE_DEPEND(amdpm, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); diff --git a/sys/dev/amdsmb/amdsmb.c b/sys/dev/amdsmb/amdsmb.c index 0fdc4b54666f..e4de2e3609a6 100644 --- a/sys/dev/amdsmb/amdsmb.c +++ b/sys/dev/amdsmb/amdsmb.c @@ -575,7 +575,7 @@ static driver_t amdsmb_driver = { }; DRIVER_MODULE(amdsmb, pci, amdsmb_driver, amdsmb_devclass, 0, 0); -DRIVER_MODULE(smbus, amdsmb, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, amdsmb, smbus_driver, 0, 0); MODULE_DEPEND(amdsmb, pci, 1, 1, 1); MODULE_DEPEND(amdsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); diff --git a/sys/dev/ichsmb/ichsmb.c b/sys/dev/ichsmb/ichsmb.c index ca7c185ec73b..ba2d993ffe5a 100644 --- a/sys/dev/ichsmb/ichsmb.c +++ b/sys/dev/ichsmb/ichsmb.c @@ -690,4 +690,4 @@ ichsmb_detach(device_t dev) return 0; } -DRIVER_MODULE(smbus, ichsmb, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, ichsmb, smbus_driver, 0, 0); diff --git a/sys/dev/iicbus/iicsmb.c b/sys/dev/iicbus/iicsmb.c index 38e67c40d488..5bb3630ae720 100644 --- a/sys/dev/iicbus/iicsmb.c +++ b/sys/dev/iicbus/iicsmb.c @@ -476,7 +476,7 @@ iicsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) } DRIVER_MODULE(iicsmb, iicbus, iicsmb_driver, iicsmb_devclass, 0, 0); -DRIVER_MODULE(smbus, iicsmb, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, iicsmb, smbus_driver, 0, 0); MODULE_DEPEND(iicsmb, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER); MODULE_DEPEND(iicsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(iicsmb, 1); diff --git a/sys/dev/imcsmb/imcsmb.c b/sys/dev/imcsmb/imcsmb.c index 0c18fb9f68cb..f5dfaa62f37a 100644 --- a/sys/dev/imcsmb/imcsmb.c +++ b/sys/dev/imcsmb/imcsmb.c @@ -551,6 +551,6 @@ DRIVER_MODULE(imcsmb, imcsmb_pci, imcsmb_driver, imcsmb_devclass, 0, 0); MODULE_DEPEND(imcsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(imcsmb, 1); -DRIVER_MODULE(smbus, imcsmb, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, imcsmb, smbus_driver, 0, 0); /* vi: set ts=8 sw=4 sts=8 noet: */ diff --git a/sys/dev/intpm/intpm.c b/sys/dev/intpm/intpm.c index e14f3b8f4eed..2fd2fa7451be 100644 --- a/sys/dev/intpm/intpm.c +++ b/sys/dev/intpm/intpm.c @@ -901,7 +901,7 @@ static driver_t intsmb_driver = { DRIVER_MODULE_ORDERED(intsmb, pci, intsmb_driver, intsmb_devclass, 0, 0, SI_ORDER_ANY); -DRIVER_MODULE(smbus, intsmb, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, intsmb, smbus_driver, 0, 0); MODULE_DEPEND(intsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(intsmb, 1); MODULE_PNP_INFO("W32:vendor/device;D:#", pci, intpm, intsmb_products, diff --git a/sys/dev/ismt/ismt.c b/sys/dev/ismt/ismt.c index 4cdec469b630..38bd977762ea 100644 --- a/sys/dev/ismt/ismt.c +++ b/sys/dev/ismt/ismt.c @@ -775,7 +775,7 @@ static driver_t ismt_pci_driver = { static devclass_t ismt_pci_devclass; DRIVER_MODULE(ismt, pci, ismt_pci_driver, ismt_pci_devclass, 0, 0); -DRIVER_MODULE(smbus, ismt, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, ismt, smbus_driver, 0, 0); MODULE_DEPEND(ismt, pci, 1, 1, 1); MODULE_DEPEND(ismt, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); diff --git a/sys/dev/nfsmb/nfsmb.c b/sys/dev/nfsmb/nfsmb.c index e01163ac5265..dbd7b0da4b16 100644 --- a/sys/dev/nfsmb/nfsmb.c +++ b/sys/dev/nfsmb/nfsmb.c @@ -648,7 +648,7 @@ static driver_t nfsmbsub_driver = { DRIVER_MODULE(nfsmb, pci, nfsmb_driver, nfsmb_devclass, 0, 0); DRIVER_MODULE(nfsmb, nfsmb, nfsmbsub_driver, nfsmb_devclass, 0, 0); -DRIVER_MODULE(smbus, nfsmb, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, nfsmb, smbus_driver, 0, 0); MODULE_DEPEND(nfsmb, pci, 1, 1, 1); MODULE_DEPEND(nfsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); diff --git a/sys/dev/smbus/smbconf.h b/sys/dev/smbus/smbconf.h index 37eb1ab6ab67..f0d402ac2dc5 100644 --- a/sys/dev/smbus/smbconf.h +++ b/sys/dev/smbus/smbconf.h @@ -95,7 +95,6 @@ SMBUS_ACCESSOR(addr, ADDR, int) #undef SMBUS_ACCESSOR extern driver_t smbus_driver; -extern devclass_t smbus_devclass; #define smbus_quick(bus,slave,how) \ (SMBUS_QUICK(device_get_parent(bus), slave, how)) diff --git a/sys/dev/smbus/smbus.c b/sys/dev/smbus/smbus.c index 3de5cbc2b1f8..eda4121629db 100644 --- a/sys/dev/smbus/smbus.c +++ b/sys/dev/smbus/smbus.c @@ -240,6 +240,4 @@ driver_t smbus_driver = { sizeof(struct smbus_softc), }; -devclass_t smbus_devclass; - MODULE_VERSION(smbus, SMBUS_MODVER); diff --git a/sys/dev/viapm/viapm.c b/sys/dev/viapm/viapm.c index 83550963ab15..2588bea71b2d 100644 --- a/sys/dev/viapm/viapm.c +++ b/sys/dev/viapm/viapm.c @@ -1006,7 +1006,7 @@ static driver_t viapropm_driver = { DRIVER_MODULE(viapm, pci, viapm_driver, viapm_devclass, 0, 0); DRIVER_MODULE(viapropm, pci, viapropm_driver, viapropm_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, 0, 0); -DRIVER_MODULE(smbus, viapropm, smbus_driver, smbus_devclass, 0, 0); +DRIVER_MODULE(smbus, viapropm, smbus_driver, 0, 0); MODULE_DEPEND(viapm, pci, 1, 1, 1); MODULE_DEPEND(viapropm, pci, 1, 1, 1);