riscv sifive: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
2663ef1bae
commit
bb32809b74
@ -313,6 +313,4 @@ static driver_t feaon_driver = {
|
||||
sizeof(struct feaon_softc)
|
||||
};
|
||||
|
||||
static devclass_t feaon_devclass;
|
||||
|
||||
DRIVER_MODULE(fe310aon, simplebus, feaon_driver, feaon_devclass, 0, 0);
|
||||
DRIVER_MODULE(fe310aon, simplebus, feaon_driver, 0, 0);
|
||||
|
@ -460,6 +460,4 @@ static device_method_t fupci_methods[] = {
|
||||
|
||||
DEFINE_CLASS_1(pcib, fupci_driver, fupci_methods,
|
||||
sizeof(struct fupci_softc), pci_dw_driver);
|
||||
static devclass_t fupci_devclass;
|
||||
DRIVER_MODULE(fu740_pci_dw, simplebus, fupci_driver, fupci_devclass,
|
||||
NULL, NULL);
|
||||
DRIVER_MODULE(fu740_pci_dw, simplebus, fupci_driver, NULL, NULL);
|
||||
|
@ -456,9 +456,8 @@ static device_method_t sfgpio_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t sfgpio_devclass;
|
||||
DEFINE_CLASS_0(gpio, sfgpio_driver, sfgpio_methods,
|
||||
sizeof(struct sfgpio_softc));
|
||||
EARLY_DRIVER_MODULE(gpio, simplebus, sfgpio_driver, sfgpio_devclass, 0, 0,
|
||||
EARLY_DRIVER_MODULE(gpio, simplebus, sfgpio_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
MODULE_DEPEND(sfgpio, gpiobus, 1, 1, 1);
|
||||
|
@ -693,11 +693,9 @@ static driver_t prci_driver = {
|
||||
sizeof(struct prci_softc)
|
||||
};
|
||||
|
||||
static devclass_t prci_devclass;
|
||||
|
||||
/*
|
||||
* hfclk and rtcclk appear later in the device tree than prci, so we must
|
||||
* attach late.
|
||||
*/
|
||||
EARLY_DRIVER_MODULE(sifive_prci, simplebus, prci_driver, prci_devclass, 0, 0,
|
||||
EARLY_DRIVER_MODULE(sifive_prci, simplebus, prci_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_LATE);
|
||||
|
@ -398,8 +398,6 @@ static driver_t sfspi_driver = {
|
||||
sizeof(struct sfspi_softc)
|
||||
};
|
||||
|
||||
static devclass_t sfspi_devclass;
|
||||
|
||||
DRIVER_MODULE(sifive_spi, simplebus, sfspi_driver, sfspi_devclass, 0, 0);
|
||||
DRIVER_MODULE(sifive_spi, simplebus, sfspi_driver, 0, 0);
|
||||
DRIVER_MODULE(ofw_spibus, sifive_spi, ofw_spibus_driver, 0, 0);
|
||||
MODULE_DEPEND(sifive_spi, ofw_spibus, 1, 1, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user