powerpc pseries: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
c331b0e4a3
commit
9b9a532782
@ -127,19 +127,20 @@ static void llan_rx_load_cb(void *xsc, bus_dma_segment_t *segs, int nsegs,
|
|||||||
static int llan_add_rxbuf(struct llan_softc *sc, struct llan_xfer *rx);
|
static int llan_add_rxbuf(struct llan_softc *sc, struct llan_xfer *rx);
|
||||||
static int llan_set_multicast(struct llan_softc *sc);
|
static int llan_set_multicast(struct llan_softc *sc);
|
||||||
|
|
||||||
static devclass_t llan_devclass;
|
|
||||||
static device_method_t llan_methods[] = {
|
static device_method_t llan_methods[] = {
|
||||||
DEVMETHOD(device_probe, llan_probe),
|
DEVMETHOD(device_probe, llan_probe),
|
||||||
DEVMETHOD(device_attach, llan_attach),
|
DEVMETHOD(device_attach, llan_attach),
|
||||||
|
|
||||||
DEVMETHOD_END
|
DEVMETHOD_END
|
||||||
};
|
};
|
||||||
|
|
||||||
static driver_t llan_driver = {
|
static driver_t llan_driver = {
|
||||||
"llan",
|
"llan",
|
||||||
llan_methods,
|
llan_methods,
|
||||||
sizeof(struct llan_softc)
|
sizeof(struct llan_softc)
|
||||||
};
|
};
|
||||||
DRIVER_MODULE(llan, vdevice, llan_driver, llan_devclass, 0, 0);
|
|
||||||
|
DRIVER_MODULE(llan, vdevice, llan_driver, 0, 0);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
llan_probe(device_t dev)
|
llan_probe(device_t dev)
|
||||||
|
@ -250,7 +250,6 @@ static void vscsi_scsi_command(void *xxp, bus_dma_segment_t *segs,
|
|||||||
static void vscsi_task_management(struct vscsi_softc *sc, union ccb *ccb);
|
static void vscsi_task_management(struct vscsi_softc *sc, union ccb *ccb);
|
||||||
static void vscsi_srp_response(struct vscsi_xfer *, struct vscsi_crq *);
|
static void vscsi_srp_response(struct vscsi_xfer *, struct vscsi_crq *);
|
||||||
|
|
||||||
static devclass_t vscsi_devclass;
|
|
||||||
static device_method_t vscsi_methods[] = {
|
static device_method_t vscsi_methods[] = {
|
||||||
DEVMETHOD(device_probe, vscsi_probe),
|
DEVMETHOD(device_probe, vscsi_probe),
|
||||||
DEVMETHOD(device_attach, vscsi_attach),
|
DEVMETHOD(device_attach, vscsi_attach),
|
||||||
@ -258,12 +257,14 @@ static device_method_t vscsi_methods[] = {
|
|||||||
|
|
||||||
DEVMETHOD_END
|
DEVMETHOD_END
|
||||||
};
|
};
|
||||||
|
|
||||||
static driver_t vscsi_driver = {
|
static driver_t vscsi_driver = {
|
||||||
"vscsi",
|
"vscsi",
|
||||||
vscsi_methods,
|
vscsi_methods,
|
||||||
sizeof(struct vscsi_softc)
|
sizeof(struct vscsi_softc)
|
||||||
};
|
};
|
||||||
DRIVER_MODULE(vscsi, vdevice, vscsi_driver, vscsi_devclass, 0, 0);
|
|
||||||
|
DRIVER_MODULE(vscsi, vdevice, vscsi_driver, 0, 0);
|
||||||
MALLOC_DEFINE(M_VSCSI, "vscsi", "CAM device queue for VSCSI");
|
MALLOC_DEFINE(M_VSCSI, "vscsi", "CAM device queue for VSCSI");
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -69,10 +69,9 @@ static device_method_t plpar_pcibus_methods[] = {
|
|||||||
DEVMETHOD_END
|
DEVMETHOD_END
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t pci_devclass;
|
|
||||||
DEFINE_CLASS_1(pci, plpar_pcibus_driver, plpar_pcibus_methods,
|
DEFINE_CLASS_1(pci, plpar_pcibus_driver, plpar_pcibus_methods,
|
||||||
sizeof(struct pci_softc), ofw_pcibus_driver);
|
sizeof(struct pci_softc), ofw_pcibus_driver);
|
||||||
DRIVER_MODULE(plpar_pcibus, pcib, plpar_pcibus_driver, pci_devclass, 0, 0);
|
DRIVER_MODULE(plpar_pcibus, pcib, plpar_pcibus_driver, 0, 0);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
plpar_pcibus_probe(device_t dev)
|
plpar_pcibus_probe(device_t dev)
|
||||||
|
@ -74,9 +74,7 @@ static driver_t rtasdev_driver = {
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t rtasdev_devclass;
|
DRIVER_MODULE(rtasdev, ofwbus, rtasdev_driver, 0, 0);
|
||||||
|
|
||||||
DRIVER_MODULE(rtasdev, ofwbus, rtasdev_driver, rtasdev_devclass, 0, 0);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtasdev_probe(device_t dev)
|
rtasdev_probe(device_t dev)
|
||||||
|
@ -99,10 +99,9 @@ struct rtaspci_softc {
|
|||||||
int sc_extended_config;
|
int sc_extended_config;
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t rtaspci_devclass;
|
|
||||||
DEFINE_CLASS_1(pcib, rtaspci_driver, rtaspci_methods,
|
DEFINE_CLASS_1(pcib, rtaspci_driver, rtaspci_methods,
|
||||||
sizeof(struct rtaspci_softc), ofw_pcib_driver);
|
sizeof(struct rtaspci_softc), ofw_pcib_driver);
|
||||||
DRIVER_MODULE(rtaspci, ofwbus, rtaspci_driver, rtaspci_devclass, 0, 0);
|
DRIVER_MODULE(rtaspci, ofwbus, rtaspci_driver, 0, 0);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtaspci_probe(device_t dev)
|
rtaspci_probe(device_t dev)
|
||||||
|
@ -103,9 +103,7 @@ static driver_t vdevice_driver = {
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t vdevice_devclass;
|
DRIVER_MODULE(vdevice, ofwbus, vdevice_driver, 0, 0);
|
||||||
|
|
||||||
DRIVER_MODULE(vdevice, ofwbus, vdevice_driver, vdevice_devclass, 0, 0);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
vdevice_probe(device_t dev)
|
vdevice_probe(device_t dev)
|
||||||
|
@ -155,13 +155,8 @@ static driver_t xics_driver = {
|
|||||||
static uint32_t cpu_xirr[MAXCPU];
|
static uint32_t cpu_xirr[MAXCPU];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static devclass_t xicp_devclass;
|
EARLY_DRIVER_MODULE(xicp, ofwbus, xicp_driver, 0, 0, BUS_PASS_INTERRUPT - 1);
|
||||||
static devclass_t xics_devclass;
|
EARLY_DRIVER_MODULE(xics, ofwbus, xics_driver, 0, 0, BUS_PASS_INTERRUPT);
|
||||||
|
|
||||||
EARLY_DRIVER_MODULE(xicp, ofwbus, xicp_driver, xicp_devclass, 0, 0,
|
|
||||||
BUS_PASS_INTERRUPT-1);
|
|
||||||
EARLY_DRIVER_MODULE(xics, ofwbus, xics_driver, xics_devclass, 0, 0,
|
|
||||||
BUS_PASS_INTERRUPT);
|
|
||||||
|
|
||||||
#ifdef POWERNV
|
#ifdef POWERNV
|
||||||
static struct resource *
|
static struct resource *
|
||||||
|
Loading…
Reference in New Issue
Block a user