x86: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
48b6e01db6
commit
80d2b3de16
@ -95,8 +95,6 @@ struct vpd_softc {
|
||||
#define RES2VPD(res) ((struct vpd *)rman_get_virtual(res))
|
||||
#define ADDR2VPD(addr) ((struct vpd *)BIOS_PADDRTOVADDR(addr))
|
||||
|
||||
static devclass_t vpd_devclass;
|
||||
|
||||
static void vpd_identify (driver_t *, device_t);
|
||||
static int vpd_probe (device_t);
|
||||
static int vpd_attach (device_t);
|
||||
@ -289,7 +287,7 @@ static driver_t vpd_driver = {
|
||||
sizeof(struct vpd_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(vpd, nexus, vpd_driver, vpd_devclass, vpd_modevent, 0);
|
||||
DRIVER_MODULE(vpd, nexus, vpd_driver, vpd_modevent, 0);
|
||||
MODULE_VERSION(vpd, 1);
|
||||
|
||||
/*
|
||||
|
@ -83,7 +83,6 @@ __FBSDID("$FreeBSD$");
|
||||
#define DMAR_QI_IRQ_RID 1
|
||||
#define DMAR_REG_RID 2
|
||||
|
||||
static devclass_t dmar_devclass;
|
||||
static device_t *dmar_devs;
|
||||
static int dmar_devcnt;
|
||||
|
||||
@ -600,7 +599,7 @@ static driver_t dmar_driver = {
|
||||
sizeof(struct dmar_unit),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(dmar, acpi, dmar_driver, dmar_devclass, 0, 0);
|
||||
DRIVER_MODULE(dmar, acpi, dmar_driver, 0, 0);
|
||||
MODULE_DEPEND(dmar, acpi, 1, 1, 1);
|
||||
|
||||
static void
|
||||
|
@ -613,9 +613,7 @@ static driver_t atpic_driver = {
|
||||
1, /* no softc */
|
||||
};
|
||||
|
||||
static devclass_t atpic_devclass;
|
||||
|
||||
DRIVER_MODULE(atpic, isa, atpic_driver, atpic_devclass, 0, 0);
|
||||
DRIVER_MODULE(atpic, acpi, atpic_driver, atpic_devclass, 0, 0);
|
||||
DRIVER_MODULE(atpic, isa, atpic_driver, 0, 0);
|
||||
DRIVER_MODULE(atpic, acpi, atpic_driver, 0, 0);
|
||||
ISA_PNP_INFO(atpic_ids);
|
||||
#endif /* DEV_ISA */
|
||||
|
@ -676,10 +676,8 @@ static driver_t atrtc_acpi_driver = {
|
||||
};
|
||||
#endif /* DEV_ACPI */
|
||||
|
||||
static devclass_t atrtc_devclass;
|
||||
|
||||
DRIVER_MODULE(atrtc, isa, atrtc_isa_driver, atrtc_devclass, 0, 0);
|
||||
DRIVER_MODULE(atrtc, isa, atrtc_isa_driver, 0, 0);
|
||||
#ifdef DEV_ACPI
|
||||
DRIVER_MODULE(atrtc, acpi, atrtc_acpi_driver, atrtc_devclass, 0, 0);
|
||||
DRIVER_MODULE(atrtc, acpi, atrtc_acpi_driver, 0, 0);
|
||||
#endif
|
||||
ISA_PNP_INFO(atrtc_ids);
|
||||
|
@ -660,10 +660,8 @@ static driver_t attimer_driver = {
|
||||
sizeof(struct attimer_softc),
|
||||
};
|
||||
|
||||
static devclass_t attimer_devclass;
|
||||
|
||||
DRIVER_MODULE(attimer, isa, attimer_driver, attimer_devclass, 0, 0);
|
||||
DRIVER_MODULE(attimer, acpi, attimer_driver, attimer_devclass, 0, 0);
|
||||
DRIVER_MODULE(attimer, isa, attimer_driver, 0, 0);
|
||||
DRIVER_MODULE(attimer, acpi, attimer_driver, 0, 0);
|
||||
ISA_PNP_INFO(attimer_ids);
|
||||
|
||||
#endif /* DEV_ISA */
|
||||
|
@ -604,8 +604,6 @@ static driver_t atdma_driver = {
|
||||
1, /* no softc */
|
||||
};
|
||||
|
||||
static devclass_t atdma_devclass;
|
||||
|
||||
DRIVER_MODULE(atdma, isa, atdma_driver, atdma_devclass, 0, 0);
|
||||
DRIVER_MODULE(atdma, acpi, atdma_driver, atdma_devclass, 0, 0);
|
||||
DRIVER_MODULE(atdma, isa, atdma_driver, 0, 0);
|
||||
DRIVER_MODULE(atdma, acpi, atdma_driver, 0, 0);
|
||||
ISA_PNP_INFO(atdma_ids);
|
||||
|
@ -185,7 +185,5 @@ static driver_t orm_driver = {
|
||||
sizeof (struct orm_softc)
|
||||
};
|
||||
|
||||
static devclass_t orm_devclass;
|
||||
|
||||
DRIVER_MODULE(orm, isa, orm_driver, orm_devclass, 0, 0);
|
||||
DRIVER_MODULE(orm, isa, orm_driver, 0, 0);
|
||||
ISA_PNP_INFO(orm_ids);
|
||||
|
@ -667,10 +667,8 @@ static device_method_t legacy_pcib_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t hostb_devclass;
|
||||
|
||||
DEFINE_CLASS_0(pcib, legacy_pcib_driver, legacy_pcib_methods, 1);
|
||||
DRIVER_MODULE(pcib, legacy, legacy_pcib_driver, hostb_devclass, 0, 0);
|
||||
DRIVER_MODULE(pcib, legacy, legacy_pcib_driver, 0, 0);
|
||||
|
||||
/*
|
||||
* Install placeholder to claim the resources owned by the
|
||||
@ -714,10 +712,8 @@ static device_method_t pcibus_pnp_methods[] = {
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
static devclass_t pcibus_pnp_devclass;
|
||||
|
||||
DEFINE_CLASS_0(pcibus_pnp, pcibus_pnp_driver, pcibus_pnp_methods, 1);
|
||||
DRIVER_MODULE(pcibus_pnp, isa, pcibus_pnp_driver, pcibus_pnp_devclass, 0, 0);
|
||||
DRIVER_MODULE(pcibus_pnp, isa, pcibus_pnp_driver, 0, 0);
|
||||
|
||||
#ifdef __HAVE_PIR
|
||||
/*
|
||||
@ -736,11 +732,9 @@ static device_method_t pcibios_pcib_pci_methods[] = {
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static devclass_t pcib_devclass;
|
||||
|
||||
DEFINE_CLASS_1(pcib, pcibios_pcib_driver, pcibios_pcib_pci_methods,
|
||||
sizeof(struct pcib_softc), pcib_driver);
|
||||
DRIVER_MODULE(pcibios_pcib, pci, pcibios_pcib_driver, pcib_devclass, 0, 0);
|
||||
DRIVER_MODULE(pcibios_pcib, pci, pcibios_pcib_driver, 0, 0);
|
||||
ISA_PNP_INFO(pcibus_pnp_ids);
|
||||
|
||||
static int
|
||||
|
@ -214,10 +214,8 @@ static device_method_t qpi_methods[] = {
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
static devclass_t qpi_devclass;
|
||||
|
||||
DEFINE_CLASS_0(qpi, qpi_driver, qpi_methods, 0);
|
||||
DRIVER_MODULE(qpi, nexus, qpi_driver, qpi_devclass, 0, 0);
|
||||
DRIVER_MODULE(qpi, nexus, qpi_driver, 0, 0);
|
||||
|
||||
static int
|
||||
qpi_pcib_probe(device_t dev)
|
||||
@ -311,7 +309,5 @@ static device_method_t qpi_pcib_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t qpi_pcib_devclass;
|
||||
|
||||
DEFINE_CLASS_0(pcib, qpi_pcib_driver, qpi_pcib_methods, 0);
|
||||
DRIVER_MODULE(pcib, qpi, qpi_pcib_driver, qpi_pcib_devclass, 0, 0);
|
||||
DRIVER_MODULE(pcib, qpi, qpi_pcib_driver, 0, 0);
|
||||
|
@ -1059,8 +1059,7 @@ static device_method_t ioapic_pci_methods[] = {
|
||||
|
||||
DEFINE_CLASS_0(ioapic, ioapic_pci_driver, ioapic_pci_methods, 0);
|
||||
|
||||
static devclass_t ioapic_devclass;
|
||||
DRIVER_MODULE(ioapic, pci, ioapic_pci_driver, ioapic_devclass, 0, 0);
|
||||
DRIVER_MODULE(ioapic, pci, ioapic_pci_driver, 0, 0);
|
||||
|
||||
int
|
||||
ioapic_get_rid(u_int apic_id, uint16_t *ridp)
|
||||
@ -1150,8 +1149,7 @@ static device_method_t apic_methods[] = {
|
||||
|
||||
DEFINE_CLASS_0(apic, apic_driver, apic_methods, 0);
|
||||
|
||||
static devclass_t apic_devclass;
|
||||
DRIVER_MODULE(apic, nexus, apic_driver, apic_devclass, 0, 0);
|
||||
DRIVER_MODULE(apic, nexus, apic_driver, 0, 0);
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
|
@ -99,9 +99,8 @@ static driver_t legacy_driver = {
|
||||
legacy_methods,
|
||||
1, /* no softc */
|
||||
};
|
||||
static devclass_t legacy_devclass;
|
||||
|
||||
DRIVER_MODULE(legacy, nexus, legacy_driver, legacy_devclass, 0, 0);
|
||||
DRIVER_MODULE(legacy, nexus, legacy_driver, 0, 0);
|
||||
|
||||
static int
|
||||
legacy_probe(device_t dev)
|
||||
@ -312,8 +311,8 @@ static driver_t cpu_driver = {
|
||||
cpu_methods,
|
||||
1, /* no softc */
|
||||
};
|
||||
static devclass_t cpu_devclass;
|
||||
DRIVER_MODULE(cpu, legacy, cpu_driver, cpu_devclass, 0, 0);
|
||||
|
||||
DRIVER_MODULE(cpu, legacy, cpu_driver, 0, 0);
|
||||
|
||||
static void
|
||||
cpu_identify(driver_t *driver, device_t parent)
|
||||
|
@ -199,11 +199,9 @@ static device_method_t mptable_hostb_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t hostb_devclass;
|
||||
|
||||
DEFINE_CLASS_0(pcib, mptable_hostb_driver, mptable_hostb_methods,
|
||||
sizeof(struct mptable_hostb_softc));
|
||||
DRIVER_MODULE(mptable_pcib, legacy, mptable_hostb_driver, hostb_devclass, 0, 0);
|
||||
DRIVER_MODULE(mptable_pcib, legacy, mptable_hostb_driver, 0, 0);
|
||||
|
||||
/* PCI to PCI bridge driver. */
|
||||
|
||||
@ -233,8 +231,6 @@ static device_method_t mptable_pcib_pci_methods[] = {
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static devclass_t pcib_devclass;
|
||||
|
||||
DEFINE_CLASS_1(pcib, mptable_pcib_driver, mptable_pcib_pci_methods,
|
||||
sizeof(struct pcib_softc), pcib_driver);
|
||||
DRIVER_MODULE(mptable_pcib, pci, mptable_pcib_driver, pcib_devclass, 0, 0);
|
||||
DRIVER_MODULE(mptable_pcib, pci, mptable_pcib_driver, 0, 0);
|
||||
|
@ -192,9 +192,8 @@ static device_method_t nexus_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(nexus, nexus_driver, nexus_methods, 1);
|
||||
static devclass_t nexus_devclass;
|
||||
|
||||
DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0);
|
||||
DRIVER_MODULE(nexus, root, nexus_driver, 0, 0);
|
||||
|
||||
static int
|
||||
nexus_probe(device_t dev)
|
||||
@ -867,9 +866,7 @@ static driver_t ram_driver = {
|
||||
1, /* no softc */
|
||||
};
|
||||
|
||||
static devclass_t ram_devclass;
|
||||
|
||||
DRIVER_MODULE(ram, nexus, ram_driver, ram_devclass, 0, 0);
|
||||
DRIVER_MODULE(ram, nexus, ram_driver, 0, 0);
|
||||
|
||||
#ifdef DEV_ISA
|
||||
/*
|
||||
@ -916,8 +913,6 @@ static driver_t sysresource_driver = {
|
||||
1, /* no softc */
|
||||
};
|
||||
|
||||
static devclass_t sysresource_devclass;
|
||||
|
||||
DRIVER_MODULE(sysresource, isa, sysresource_driver, sysresource_devclass, 0, 0);
|
||||
DRIVER_MODULE(sysresource, isa, sysresource_driver, 0, 0);
|
||||
ISA_PNP_INFO(sysresource_ids);
|
||||
#endif /* DEV_ISA */
|
||||
|
Loading…
Reference in New Issue
Block a user