riscv: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
90b8b22435
commit
2663ef1bae
@ -125,14 +125,13 @@ static device_method_t riscv64_cpu_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t riscv64_cpu_devclass;
|
||||
static driver_t riscv64_cpu_driver = {
|
||||
"riscv64_cpu",
|
||||
riscv64_cpu_methods,
|
||||
0
|
||||
};
|
||||
|
||||
DRIVER_MODULE(riscv64_cpu, cpu, riscv64_cpu_driver, riscv64_cpu_devclass, 0, 0);
|
||||
DRIVER_MODULE(riscv64_cpu, cpu, riscv64_cpu_driver, 0, 0);
|
||||
|
||||
static void
|
||||
riscv64_cpu_identify(driver_t *driver, device_t parent)
|
||||
|
@ -446,10 +446,8 @@ nexus_map_resource(device_t bus, device_t child, int type, struct resource *r,
|
||||
return (0);
|
||||
}
|
||||
|
||||
static devclass_t nexus_fdt_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(nexus_fdt, root, nexus_fdt_driver, nexus_fdt_devclass,
|
||||
0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_FIRST);
|
||||
EARLY_DRIVER_MODULE(nexus_fdt, root, nexus_fdt_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_FIRST);
|
||||
|
||||
static int
|
||||
nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells,
|
||||
|
@ -467,7 +467,5 @@ static driver_t plic_driver = {
|
||||
sizeof(struct plic_softc),
|
||||
};
|
||||
|
||||
static devclass_t plic_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(plic, simplebus, plic_driver, plic_devclass,
|
||||
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(plic, simplebus, plic_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -266,6 +266,4 @@ static driver_t rcons_driver = {
|
||||
sizeof(struct rcons_softc)
|
||||
};
|
||||
|
||||
static devclass_t rcons_devclass;
|
||||
|
||||
DRIVER_MODULE(rcons, nexus, rcons_driver, rcons_devclass, 0, 0);
|
||||
DRIVER_MODULE(rcons, nexus, rcons_driver, 0, 0);
|
||||
|
@ -77,8 +77,7 @@ static device_method_t riscv_syscon_methods[] = {
|
||||
DEFINE_CLASS_1(riscv_syscon, riscv_syscon_driver, riscv_syscon_methods,
|
||||
sizeof(struct syscon_generic_softc), syscon_generic_driver);
|
||||
|
||||
static devclass_t riscv_syscon_devclass;
|
||||
/* riscv_syscon needs to attach prior to syscon_power */
|
||||
EARLY_DRIVER_MODULE(riscv_syscon, simplebus, riscv_syscon_driver,
|
||||
riscv_syscon_devclass, 0, 0, BUS_PASS_SCHEDULER + BUS_PASS_ORDER_LAST);
|
||||
EARLY_DRIVER_MODULE(riscv_syscon, simplebus, riscv_syscon_driver, 0, 0,
|
||||
BUS_PASS_SCHEDULER + BUS_PASS_ORDER_LAST);
|
||||
MODULE_VERSION(riscv_syscon, 1);
|
||||
|
@ -256,10 +256,8 @@ static driver_t riscv_timer_driver = {
|
||||
sizeof(struct riscv_timer_softc),
|
||||
};
|
||||
|
||||
static devclass_t riscv_timer_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(timer, nexus, riscv_timer_driver, riscv_timer_devclass,
|
||||
0, 0, BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(timer, nexus, riscv_timer_driver, 0, 0,
|
||||
BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE);
|
||||
|
||||
void
|
||||
DELAY(int usec)
|
||||
|
Loading…
Reference in New Issue
Block a user