altera drivers: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
94412ad7d9
commit
b08b5f558b
@ -195,8 +195,6 @@ pxx_read_2(struct atse_softc *sc, bus_addr_t bmcr, uint32_t reg, const char *f,
|
||||
static void atse_tick(void *);
|
||||
static int atse_detach(device_t);
|
||||
|
||||
devclass_t atse_devclass;
|
||||
|
||||
static int
|
||||
atse_rx_enqueue(struct atse_softc *sc, uint32_t n)
|
||||
{
|
||||
|
@ -143,5 +143,5 @@ static driver_t atse_driver_fdt = {
|
||||
sizeof(struct atse_softc)
|
||||
};
|
||||
|
||||
DRIVER_MODULE(atse, simplebus, atse_driver_fdt, atse_devclass, 0, 0);
|
||||
DRIVER_MODULE(atse, simplebus, atse_driver_fdt, 0, 0);
|
||||
DRIVER_MODULE(miibus, atse, miibus_driver, 0, 0);
|
||||
|
@ -156,5 +156,5 @@ static driver_t atse_driver_nexus = {
|
||||
sizeof(struct atse_softc)
|
||||
};
|
||||
|
||||
DRIVER_MODULE(atse, nexus, atse_driver_nexus, atse_devclass, 0, 0);
|
||||
DRIVER_MODULE(atse, nexus, atse_driver_nexus, 0, 0);
|
||||
DRIVER_MODULE(miibus, atse, miibus_driver, 0, 0);
|
||||
|
@ -463,6 +463,4 @@ int atse_miibus_readreg(device_t, int, int);
|
||||
int atse_miibus_writereg(device_t, int, int, int);
|
||||
void atse_miibus_statchg(device_t);
|
||||
|
||||
extern devclass_t atse_devclass;
|
||||
|
||||
#endif /* _DEV_IF_ATSEREG_H */
|
||||
|
@ -64,8 +64,6 @@ __FBSDID("$FreeBSD$");
|
||||
* system-on-chip bus environments would work fine with the same code.
|
||||
*/
|
||||
|
||||
devclass_t altera_avgen_devclass;
|
||||
|
||||
static d_mmap_t altera_avgen_mmap;
|
||||
static d_read_t altera_avgen_read;
|
||||
static d_write_t altera_avgen_write;
|
||||
|
@ -95,6 +95,4 @@ int altera_avgen_attach(struct altera_avgen_softc *sc,
|
||||
const char *str_mmapio, const char *str_devname, int devunit);
|
||||
void altera_avgen_detach(struct altera_avgen_softc *sc);
|
||||
|
||||
extern devclass_t altera_avgen_devclass;
|
||||
|
||||
#endif /* _DEV_ALTERA_AVALON_H_ */
|
||||
|
@ -159,5 +159,4 @@ static driver_t altera_avgen_fdt_driver = {
|
||||
sizeof(struct altera_avgen_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(avgen, simplebus, altera_avgen_fdt_driver,
|
||||
altera_avgen_devclass, 0, 0);
|
||||
DRIVER_MODULE(avgen, simplebus, altera_avgen_fdt_driver, 0, 0);
|
||||
|
@ -141,5 +141,4 @@ static driver_t altera_avgen_nexus_driver = {
|
||||
sizeof(struct altera_avgen_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(avgen, nexus, altera_avgen_nexus_driver, altera_avgen_devclass,
|
||||
0, 0);
|
||||
DRIVER_MODULE(avgen, nexus, altera_avgen_nexus_driver, 0, 0);
|
||||
|
@ -101,13 +101,11 @@ static device_method_t dwc_socfpga_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t dwc_socfpga_devclass;
|
||||
|
||||
extern driver_t dwc_driver;
|
||||
|
||||
DEFINE_CLASS_1(dwc, dwc_socfpga_driver, dwc_socfpga_methods,
|
||||
sizeof(struct dwc_softc), dwc_driver);
|
||||
EARLY_DRIVER_MODULE(dwc_socfpga, simplebus, dwc_socfpga_driver,
|
||||
dwc_socfpga_devclass, 0, 0, BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(dwc_socfpga, simplebus, dwc_socfpga_driver, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
|
||||
MODULE_DEPEND(dwc_socfpga, dwc, 1, 1, 1);
|
||||
|
@ -196,6 +196,4 @@ extern u_int aju_cons_jtag_missed;
|
||||
int altera_jtag_uart_attach(struct altera_jtag_uart_softc *sc);
|
||||
void altera_jtag_uart_detach(struct altera_jtag_uart_softc *sc);
|
||||
|
||||
extern devclass_t altera_jtag_uart_devclass;
|
||||
|
||||
#endif /* _DEV_ALTERA_JTAG_UART_H_ */
|
||||
|
@ -50,8 +50,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <dev/altera/jtag_uart/altera_jtag_uart.h>
|
||||
|
||||
devclass_t altera_jtag_uart_devclass;
|
||||
|
||||
static SYSCTL_NODE(_hw, OID_AUTO, altera_jtag_uart,
|
||||
CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
|
||||
"Altera JTAG UART configuration knobs");
|
||||
|
@ -148,5 +148,4 @@ static driver_t altera_jtag_uart_fdt_driver = {
|
||||
sizeof(struct altera_jtag_uart_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(altera_jtag_uart, simplebus, altera_jtag_uart_fdt_driver,
|
||||
altera_jtag_uart_devclass, 0, 0);
|
||||
DRIVER_MODULE(altera_jtag_uart, simplebus, altera_jtag_uart_fdt_driver, 0, 0);
|
||||
|
@ -139,5 +139,4 @@ static driver_t altera_jtag_uart_nexus_driver = {
|
||||
sizeof(struct altera_jtag_uart_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(altera_jtag_uart, nexus, altera_jtag_uart_nexus_driver,
|
||||
altera_jtag_uart_devclass, 0, 0);
|
||||
DRIVER_MODULE(altera_jtag_uart, nexus, altera_jtag_uart_nexus_driver, 0, 0);
|
||||
|
@ -640,7 +640,5 @@ static driver_t msgdma_driver = {
|
||||
sizeof(struct msgdma_softc),
|
||||
};
|
||||
|
||||
static devclass_t msgdma_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(msgdma, simplebus, msgdma_driver, msgdma_devclass, 0, 0,
|
||||
EARLY_DRIVER_MODULE(msgdma, simplebus, msgdma_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
|
@ -208,6 +208,4 @@ static driver_t pio_driver = {
|
||||
sizeof(struct pio_softc),
|
||||
};
|
||||
|
||||
static devclass_t pio_devclass;
|
||||
|
||||
DRIVER_MODULE(altera_pio, simplebus, pio_driver, pio_devclass, 0, 0);
|
||||
DRIVER_MODULE(altera_pio, simplebus, pio_driver, 0, 0);
|
||||
|
@ -74,7 +74,6 @@ __FBSDID("$FreeBSD$");
|
||||
* 3. Handle read-only SD Cards.
|
||||
* 4. Tune timeouts based on real-world SD Card speeds.
|
||||
*/
|
||||
devclass_t altera_sdcard_devclass;
|
||||
|
||||
void
|
||||
altera_sdcard_attach(struct altera_sdcard_softc *sc)
|
||||
|
@ -246,6 +246,4 @@ void altera_sdcard_start(struct altera_sdcard_softc *sc);
|
||||
void altera_sdcard_disk_insert(struct altera_sdcard_softc *sc);
|
||||
void altera_sdcard_disk_remove(struct altera_sdcard_softc *sc);
|
||||
|
||||
extern devclass_t altera_sdcard_devclass;
|
||||
|
||||
#endif /* _DEV_ALTERA_SDCARD_H_ */
|
||||
|
@ -121,5 +121,4 @@ static driver_t altera_sdcard_fdt_driver = {
|
||||
sizeof(struct altera_sdcard_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(altera_sdcard, simplebus, altera_sdcard_fdt_driver,
|
||||
altera_sdcard_devclass, 0, 0);
|
||||
DRIVER_MODULE(altera_sdcard, simplebus, altera_sdcard_fdt_driver, 0, 0);
|
||||
|
@ -112,5 +112,4 @@ static driver_t altera_sdcard_nexus_driver = {
|
||||
sizeof(struct altera_sdcard_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(altera_sdcard, nexus, altera_sdcard_nexus_driver,
|
||||
altera_sdcard_devclass, 0, 0);
|
||||
DRIVER_MODULE(altera_sdcard, nexus, altera_sdcard_nexus_driver, 0, 0);
|
||||
|
@ -880,7 +880,5 @@ static driver_t softdma_driver = {
|
||||
sizeof(struct softdma_softc),
|
||||
};
|
||||
|
||||
static devclass_t softdma_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(softdma, simplebus, softdma_driver, softdma_devclass, 0, 0,
|
||||
EARLY_DRIVER_MODULE(softdma, simplebus, softdma_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
|
Loading…
Reference in New Issue
Block a user