powerpc powermac: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
5d7d6129f4
commit
992ae60ba4
@ -101,9 +101,7 @@ static driver_t atibl_driver = {
|
||||
sizeof(struct atibl_softc)
|
||||
};
|
||||
|
||||
static devclass_t atibl_devclass;
|
||||
|
||||
DRIVER_MODULE(atibl, vgapci, atibl_driver, atibl_devclass, 0, 0);
|
||||
DRIVER_MODULE(atibl, vgapci, atibl_driver, 0, 0);
|
||||
|
||||
static void
|
||||
atibl_identify(driver_t *driver, device_t parent)
|
||||
|
@ -138,11 +138,9 @@ struct cpcht_softc {
|
||||
struct mtx htirq_mtx;
|
||||
};
|
||||
|
||||
static devclass_t cpcht_devclass;
|
||||
DEFINE_CLASS_1(pcib, cpcht_driver, cpcht_methods, sizeof(struct cpcht_softc),
|
||||
ofw_pcib_driver);
|
||||
EARLY_DRIVER_MODULE(cpcht, ofwbus, cpcht_driver, cpcht_devclass, 0, 0,
|
||||
BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(cpcht, ofwbus, cpcht_driver, 0, 0, BUS_PASS_BUS);
|
||||
|
||||
#define CPCHT_IOPORT_BASE 0xf4000000UL /* Hardwired */
|
||||
#define CPCHT_IOPORT_SIZE 0x00400000UL
|
||||
|
@ -113,9 +113,7 @@ static driver_t cuda_driver = {
|
||||
sizeof(struct cuda_softc),
|
||||
};
|
||||
|
||||
static devclass_t cuda_devclass;
|
||||
|
||||
DRIVER_MODULE(cuda, macio, cuda_driver, cuda_devclass, 0, 0);
|
||||
DRIVER_MODULE(cuda, macio, cuda_driver, 0, 0);
|
||||
DRIVER_MODULE(adb, cuda, adb_driver, 0, 0);
|
||||
|
||||
static void cuda_intr(void *arg);
|
||||
|
@ -130,9 +130,7 @@ static driver_t fcu_driver = {
|
||||
sizeof(struct fcu_softc)
|
||||
};
|
||||
|
||||
static devclass_t fcu_devclass;
|
||||
|
||||
DRIVER_MODULE(fcu, iicbus, fcu_driver, fcu_devclass, 0, 0);
|
||||
DRIVER_MODULE(fcu, iicbus, fcu_driver, 0, 0);
|
||||
static MALLOC_DEFINE(M_FCU, "fcu", "FCU Sensor Information");
|
||||
|
||||
static int
|
||||
|
@ -98,10 +98,9 @@ static device_method_t grackle_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t grackle_devclass;
|
||||
DEFINE_CLASS_1(pcib, grackle_driver, grackle_methods,
|
||||
sizeof(struct grackle_softc), ofw_pcib_driver);
|
||||
DRIVER_MODULE(grackle, ofwbus, grackle_driver, grackle_devclass, 0, 0);
|
||||
DRIVER_MODULE(grackle, ofwbus, grackle_driver, 0, 0);
|
||||
|
||||
static int
|
||||
grackle_probe(device_t dev)
|
||||
@ -317,6 +316,5 @@ static driver_t grackle_hb_driver = {
|
||||
grackle_hb_methods,
|
||||
1,
|
||||
};
|
||||
static devclass_t grackle_hb_devclass;
|
||||
|
||||
DRIVER_MODULE(grackle_hb, pci, grackle_hb_driver, grackle_hb_devclass, 0, 0);
|
||||
DRIVER_MODULE(grackle_hb, pci, grackle_hb_driver, 0, 0);
|
||||
|
@ -94,9 +94,7 @@ static driver_t hrowpic_driver = {
|
||||
sizeof(struct hrowpic_softc)
|
||||
};
|
||||
|
||||
static devclass_t hrowpic_devclass;
|
||||
|
||||
DRIVER_MODULE(hrowpic, macio, hrowpic_driver, hrowpic_devclass, 0, 0);
|
||||
DRIVER_MODULE(hrowpic, macio, hrowpic_driver, 0, 0);
|
||||
|
||||
static uint32_t
|
||||
hrowpic_read_reg(struct hrowpic_softc *sc, u_int reg, u_int bank)
|
||||
|
@ -145,10 +145,9 @@ static driver_t kiic_driver = {
|
||||
kiic_methods,
|
||||
sizeof(struct kiic_softc)
|
||||
};
|
||||
static devclass_t kiic_devclass;
|
||||
|
||||
DRIVER_MODULE(kiic, macio, kiic_driver, kiic_devclass, 0, 0);
|
||||
DRIVER_MODULE(kiic, unin, kiic_driver, kiic_devclass, 0, 0);
|
||||
DRIVER_MODULE(kiic, macio, kiic_driver, 0, 0);
|
||||
DRIVER_MODULE(kiic, unin, kiic_driver, 0, 0);
|
||||
|
||||
static int
|
||||
kiic_probe(device_t self)
|
||||
|
@ -122,10 +122,7 @@ static driver_t macgpio_pci_driver = {
|
||||
sizeof(struct macgpio_softc)
|
||||
};
|
||||
|
||||
devclass_t macgpio_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(macgpio, macio, macgpio_pci_driver, macgpio_devclass, 0, 0,
|
||||
BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(macgpio, macio, macgpio_pci_driver, 0, 0, BUS_PASS_BUS);
|
||||
|
||||
struct macgpio_devinfo {
|
||||
struct ofw_bus_devinfo mdi_obdinfo;
|
||||
|
@ -139,10 +139,7 @@ static driver_t macio_pci_driver = {
|
||||
sizeof(struct macio_softc)
|
||||
};
|
||||
|
||||
devclass_t macio_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(macio, pci, macio_pci_driver, macio_devclass, 0, 0,
|
||||
BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(macio, pci, macio_pci_driver, 0, 0, BUS_PASS_BUS);
|
||||
|
||||
/*
|
||||
* PCI ID search table
|
||||
|
@ -79,9 +79,7 @@ static driver_t nvbl_driver = {
|
||||
sizeof(struct nvbl_softc)
|
||||
};
|
||||
|
||||
static devclass_t nvbl_devclass;
|
||||
|
||||
DRIVER_MODULE(nvbl, vgapci, nvbl_driver, nvbl_devclass, 0, 0);
|
||||
DRIVER_MODULE(nvbl, vgapci, nvbl_driver, 0, 0);
|
||||
|
||||
static void
|
||||
nvbl_identify(driver_t *driver, device_t parent)
|
||||
|
@ -154,10 +154,7 @@ static driver_t pmu_driver = {
|
||||
sizeof(struct pmu_softc),
|
||||
};
|
||||
|
||||
static devclass_t pmu_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(pmu, macio, pmu_driver, pmu_devclass, 0, 0,
|
||||
BUS_PASS_RESOURCE);
|
||||
EARLY_DRIVER_MODULE(pmu, macio, pmu_driver, 0, 0, BUS_PASS_RESOURCE);
|
||||
DRIVER_MODULE(adb, pmu, adb_driver, 0, 0);
|
||||
|
||||
static int pmuextint_probe(device_t);
|
||||
@ -176,10 +173,8 @@ static driver_t pmuextint_driver = {
|
||||
0
|
||||
};
|
||||
|
||||
static devclass_t pmuextint_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(pmuextint, macgpio, pmuextint_driver, pmuextint_devclass,
|
||||
0, 0, BUS_PASS_RESOURCE);
|
||||
EARLY_DRIVER_MODULE(pmuextint, macgpio, pmuextint_driver, 0, 0,
|
||||
BUS_PASS_RESOURCE);
|
||||
|
||||
/* Make sure uhid is loaded, as it turns off some of the ADB emulation */
|
||||
MODULE_DEPEND(pmu, usb, 1, 1, 1);
|
||||
|
@ -70,10 +70,7 @@ static driver_t pswitch_driver = {
|
||||
sizeof(struct pswitch_softc)
|
||||
};
|
||||
|
||||
static devclass_t pswitch_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(pswitch, macgpio, pswitch_driver, pswitch_devclass,
|
||||
0, 0, BUS_PASS_RESOURCE);
|
||||
EARLY_DRIVER_MODULE(pswitch, macgpio, pswitch_driver, 0, 0, BUS_PASS_RESOURCE);
|
||||
|
||||
static int
|
||||
pswitch_probe(device_t dev)
|
||||
|
@ -213,9 +213,7 @@ static driver_t smu_driver = {
|
||||
sizeof(struct smu_softc)
|
||||
};
|
||||
|
||||
static devclass_t smu_devclass;
|
||||
|
||||
DRIVER_MODULE(smu, ofwbus, smu_driver, smu_devclass, 0, 0);
|
||||
DRIVER_MODULE(smu, ofwbus, smu_driver, 0, 0);
|
||||
static MALLOC_DEFINE(M_SMU, "smu", "SMU Sensor Information");
|
||||
|
||||
#define SMU_MAILBOX 0x8000860c
|
||||
@ -631,10 +629,8 @@ static driver_t doorbell_driver = {
|
||||
0
|
||||
};
|
||||
|
||||
static devclass_t doorbell_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(smudoorbell, macgpio, doorbell_driver, doorbell_devclass,
|
||||
0, 0, BUS_PASS_SUPPORTDEV);
|
||||
EARLY_DRIVER_MODULE(smudoorbell, macgpio, doorbell_driver, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV);
|
||||
|
||||
static int
|
||||
doorbell_probe(device_t dev)
|
||||
@ -1415,9 +1411,8 @@ static driver_t smuiic_driver = {
|
||||
smuiic_methods,
|
||||
sizeof(struct smuiic_softc)
|
||||
};
|
||||
static devclass_t smuiic_devclass;
|
||||
|
||||
DRIVER_MODULE(smuiic, smu, smuiic_driver, smuiic_devclass, 0, 0);
|
||||
DRIVER_MODULE(smuiic, smu, smuiic_driver, 0, 0);
|
||||
|
||||
static void
|
||||
smu_attach_i2c(device_t smu, phandle_t i2croot)
|
||||
|
@ -88,9 +88,7 @@ static driver_t smusat_driver = {
|
||||
sizeof(struct smusat_softc)
|
||||
};
|
||||
|
||||
static devclass_t smusat_devclass;
|
||||
|
||||
DRIVER_MODULE(smusat, iicbus, smusat_driver, smusat_devclass, 0, 0);
|
||||
DRIVER_MODULE(smusat, iicbus, smusat_driver, 0, 0);
|
||||
|
||||
static int
|
||||
smusat_probe(device_t dev)
|
||||
|
@ -61,10 +61,7 @@ static driver_t tbgpio_driver = {
|
||||
sizeof(struct tbgpio_softc)
|
||||
};
|
||||
|
||||
static devclass_t tbgpio_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(tbgpio, macgpio, tbgpio_driver, tbgpio_devclass, 0, 0,
|
||||
BUS_PASS_CPU);
|
||||
EARLY_DRIVER_MODULE(tbgpio, macgpio, tbgpio_driver, 0, 0, BUS_PASS_CPU);
|
||||
|
||||
static int
|
||||
tbgpio_probe(device_t dev)
|
||||
|
@ -135,8 +135,6 @@ static driver_t unin_chip_driver = {
|
||||
sizeof(struct unin_chip_softc)
|
||||
};
|
||||
|
||||
static devclass_t unin_chip_devclass;
|
||||
|
||||
/*
|
||||
* Assume there is only one unin chip in a PowerMac, so that pmu.c functions can
|
||||
* suspend the chip after the whole rest of the device tree is suspended, not
|
||||
@ -144,8 +142,7 @@ static devclass_t unin_chip_devclass;
|
||||
*/
|
||||
static device_t unin_chip;
|
||||
|
||||
EARLY_DRIVER_MODULE(unin, ofwbus, unin_chip_driver, unin_chip_devclass, 0, 0,
|
||||
BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(unin, ofwbus, unin_chip_driver, 0, 0, BUS_PASS_BUS);
|
||||
|
||||
/*
|
||||
* Add an interrupt to the dev's resource list if present
|
||||
|
@ -97,12 +97,9 @@ static device_method_t uninorth_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t uninorth_devclass;
|
||||
|
||||
DEFINE_CLASS_1(pcib, uninorth_driver, uninorth_methods,
|
||||
sizeof(struct uninorth_softc), ofw_pcib_driver);
|
||||
EARLY_DRIVER_MODULE(uninorth, ofwbus, uninorth_driver, uninorth_devclass, 0, 0,
|
||||
BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(uninorth, ofwbus, uninorth_driver, 0, 0, BUS_PASS_BUS);
|
||||
|
||||
static int
|
||||
uninorth_probe(device_t dev)
|
||||
|
@ -63,9 +63,7 @@ static driver_t vcoregpio_driver = {
|
||||
0
|
||||
};
|
||||
|
||||
static devclass_t vcoregpio_devclass;
|
||||
|
||||
DRIVER_MODULE(vcoregpio, macgpio, vcoregpio_driver, vcoregpio_devclass, 0, 0);
|
||||
DRIVER_MODULE(vcoregpio, macgpio, vcoregpio_driver, 0, 0);
|
||||
|
||||
static int
|
||||
vcoregpio_probe(device_t dev)
|
||||
|
Loading…
Reference in New Issue
Block a user