arm64 qoriq: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-05-09 14:26:45 -07:00
parent 3d2549ce8a
commit d782704278
7 changed files with 10 additions and 24 deletions

View File

@ -266,10 +266,8 @@ static device_method_t ls1028a_clkgen_methods[] = {
DEFINE_CLASS_1(ls1028a_clkgen, ls1028a_clkgen_driver, ls1028a_clkgen_methods,
sizeof(struct qoriq_clkgen_softc), qoriq_clkgen_driver);
static devclass_t ls1028a_clkgen_devclass;
EARLY_DRIVER_MODULE(ls1028a_clkgen, simplebus, ls1028a_clkgen_driver,
ls1028a_clkgen_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
EARLY_DRIVER_MODULE(ls1028a_clkgen, simplebus, ls1028a_clkgen_driver, 0, 0,
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
static int
ls1028a_clkgen_probe(device_t dev)

View File

@ -303,8 +303,7 @@ static device_method_t ls1028a_flexspi_clk_methods[] = {
DEVMETHOD_END
};
static devclass_t ls1028a_flexspi_clk_devclass;
static DEFINE_CLASS_0(fspi_clk, ls1028a_flexspi_clk_driver, ls1028a_flexspi_clk_methods,
sizeof(struct ls1028a_flexspi_clk_softc));
EARLY_DRIVER_MODULE(ls1028a_flexspi_clk, simple_mfd, ls1028a_flexspi_clk_driver,
ls1028a_flexspi_clk_devclass, NULL, NULL, BUS_PASS_TIMER);
NULL, NULL, BUS_PASS_TIMER);

View File

@ -194,10 +194,8 @@ static device_method_t ls1046a_clkgen_methods[] = {
DEFINE_CLASS_1(ls1046a_clkgen, ls1046a_clkgen_driver, ls1046a_clkgen_methods,
sizeof(struct qoriq_clkgen_softc), qoriq_clkgen_driver);
static devclass_t ls1046a_clkgen_devclass;
EARLY_DRIVER_MODULE(ls1046a_clkgen, simplebus, ls1046a_clkgen_driver,
ls1046a_clkgen_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
EARLY_DRIVER_MODULE(ls1046a_clkgen, simplebus, ls1046a_clkgen_driver, 0, 0,
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
static int
ls1046a_fman_init(device_t dev)

View File

@ -203,9 +203,7 @@ static device_method_t lx2160a_clkgen_methods[] = {
DEVMETHOD_END
};
static devclass_t lx2160a_clkgen_devclass;
DEFINE_CLASS_1(lx2160a_clkgen, lx2160a_clkgen_driver, lx2160a_clkgen_methods,
sizeof(struct qoriq_clkgen_softc), qoriq_clkgen_driver);
EARLY_DRIVER_MODULE(lx2160a_clkgen, simplebus, lx2160a_clkgen_driver,
lx2160a_clkgen_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
EARLY_DRIVER_MODULE(lx2160a_clkgen, simplebus, lx2160a_clkgen_driver, 0, 0,
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);

View File

@ -251,6 +251,4 @@ static device_method_t qorif_dw_pci_methods[] = {
DEFINE_CLASS_1(pcib, qorif_dw_pci_driver, qorif_dw_pci_methods,
sizeof(struct qorif_dw_pci_softc), pci_dw_driver);
static devclass_t qorif_dw_pci_devclass;
DRIVER_MODULE( qorif_dw_pci, simplebus, qorif_dw_pci_driver, qorif_dw_pci_devclass,
NULL, NULL);
DRIVER_MODULE( qorif_dw_pci, simplebus, qorif_dw_pci_driver, NULL, NULL);

View File

@ -430,10 +430,7 @@ static device_method_t qoriq_gpio_pic_methods[] = {
DEVMETHOD_END
};
static devclass_t qoriq_gpio_pic_devclass;
DEFINE_CLASS_1(gpio, qoriq_gpio_pic_driver, qoriq_gpio_pic_methods,
sizeof(struct qoriq_gpio_pic_softc), qoriq_gpio_driver);
EARLY_DRIVER_MODULE(qoriq_gpio_pic, simplebus, qoriq_gpio_pic_driver,
qoriq_gpio_pic_devclass, NULL, NULL,
EARLY_DRIVER_MODULE(qoriq_gpio_pic, simplebus, qoriq_gpio_pic_driver, NULL, NULL,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);

View File

@ -400,8 +400,6 @@ static device_method_t qoriq_qoriq_therm_methods[] = {
DEVMETHOD_END
};
static devclass_t qoriq_qoriq_therm_devclass;
static DEFINE_CLASS_0(soctherm, qoriq_qoriq_therm_driver, qoriq_qoriq_therm_methods,
sizeof(struct qoriq_therm_softc));
DRIVER_MODULE(qoriq_soctherm, simplebus, qoriq_qoriq_therm_driver,
qoriq_qoriq_therm_devclass, NULL, NULL);
DRIVER_MODULE(qoriq_soctherm, simplebus, qoriq_qoriq_therm_driver, NULL, NULL);