xen: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
51776a92ca
commit
f929eb1ed5
@ -408,7 +408,5 @@ static device_method_t xenballoon_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(xenballoon, xenballoon_driver, xenballoon_methods, 0);
|
||||
devclass_t xenballoon_devclass;
|
||||
|
||||
DRIVER_MODULE(xenballoon, xenstore, xenballoon_driver, xenballoon_devclass,
|
||||
NULL, NULL);
|
||||
DRIVER_MODULE(xenballoon, xenstore, xenballoon_driver, NULL, NULL);
|
||||
|
@ -3954,6 +3954,5 @@ static driver_t xbb_driver = {
|
||||
xbb_methods,
|
||||
sizeof(struct xbb_softc),
|
||||
};
|
||||
devclass_t xbb_devclass;
|
||||
|
||||
DRIVER_MODULE(xbbd, xenbusb_back, xbb_driver, xbb_devclass, 0, 0);
|
||||
DRIVER_MODULE(xbbd, xenbusb_back, xbb_driver, 0, 0);
|
||||
|
@ -1646,6 +1646,5 @@ static driver_t xbd_driver = {
|
||||
xbd_methods,
|
||||
sizeof(struct xbd_softc),
|
||||
};
|
||||
devclass_t xbd_devclass;
|
||||
|
||||
DRIVER_MODULE(xbd, xenbusb_front, xbd_driver, xbd_devclass, 0, 0);
|
||||
DRIVER_MODULE(xbd, xenbusb_front, xbd_driver, 0, 0);
|
||||
|
@ -68,8 +68,6 @@ __FBSDID("$FreeBSD$");
|
||||
#define LOW_MEM_LIMIT 0
|
||||
#endif
|
||||
|
||||
static devclass_t xenpv_devclass;
|
||||
|
||||
static void
|
||||
xenpv_identify(driver_t *driver, device_t parent)
|
||||
{
|
||||
@ -186,7 +184,7 @@ static driver_t xenpv_driver = {
|
||||
0,
|
||||
};
|
||||
|
||||
DRIVER_MODULE(xenpv, nexus, xenpv_driver, xenpv_devclass, 0, 0);
|
||||
DRIVER_MODULE(xenpv, nexus, xenpv_driver, 0, 0);
|
||||
|
||||
struct resource *
|
||||
xenmem_alloc(device_t dev, int *res_id, size_t size)
|
||||
|
@ -771,8 +771,6 @@ xencons_resume(device_t dev)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static devclass_t xencons_devclass;
|
||||
|
||||
static device_method_t xencons_methods[] = {
|
||||
DEVMETHOD(device_identify, xencons_identify),
|
||||
DEVMETHOD(device_probe, xencons_probe),
|
||||
@ -788,4 +786,4 @@ static driver_t xencons_driver = {
|
||||
0,
|
||||
};
|
||||
|
||||
DRIVER_MODULE(xc, xenpv, xencons_driver, xencons_devclass, 0, 0);
|
||||
DRIVER_MODULE(xc, xenpv, xencons_driver, 0, 0);
|
||||
|
@ -487,6 +487,5 @@ static device_method_t xctrl_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(xctrl, xctrl_driver, xctrl_methods, sizeof(struct xctrl_softc));
|
||||
devclass_t xctrl_devclass;
|
||||
|
||||
DRIVER_MODULE(xctrl, xenstore, xctrl_driver, xctrl_devclass, NULL, NULL);
|
||||
DRIVER_MODULE(xctrl, xenstore, xctrl_driver, NULL, NULL);
|
||||
|
@ -600,6 +600,5 @@ static driver_t xen_acpi_cpu_driver = {
|
||||
sizeof(struct xen_acpi_cpu_softc),
|
||||
};
|
||||
|
||||
static devclass_t xen_acpi_cpu_devclass;
|
||||
DRIVER_MODULE(xen_cpu, acpi, xen_acpi_cpu_driver, xen_acpi_cpu_devclass, 0, 0);
|
||||
DRIVER_MODULE(xen_cpu, acpi, xen_acpi_cpu_driver, 0, 0);
|
||||
MODULE_DEPEND(xen_cpu, acpi, 1, 1, 1);
|
||||
|
@ -150,7 +150,5 @@ static driver_t xendebug_driver = {
|
||||
0,
|
||||
};
|
||||
|
||||
devclass_t xendebug_devclass;
|
||||
|
||||
DRIVER_MODULE(xendebug, xenpv, xendebug_driver, xendebug_devclass, 0, 0);
|
||||
DRIVER_MODULE(xendebug, xenpv, xendebug_driver, 0, 0);
|
||||
MODULE_DEPEND(xendebug, xenpv, 1, 1, 1);
|
||||
|
@ -599,7 +599,5 @@ static driver_t evtchn_driver = {
|
||||
0,
|
||||
};
|
||||
|
||||
devclass_t evtchn_devclass;
|
||||
|
||||
DRIVER_MODULE(evtchn, xenpv, evtchn_driver, evtchn_devclass, 0, 0);
|
||||
DRIVER_MODULE(evtchn, xenpv, evtchn_driver, 0, 0);
|
||||
MODULE_DEPEND(evtchn, xenpv, 1, 1, 1);
|
||||
|
@ -1276,7 +1276,5 @@ static driver_t gntdev_driver = {
|
||||
0,
|
||||
};
|
||||
|
||||
devclass_t gntdev_devclass;
|
||||
|
||||
DRIVER_MODULE(gntdev, xenpv, gntdev_driver, gntdev_devclass, 0, 0);
|
||||
DRIVER_MODULE(gntdev, xenpv, gntdev_driver, 0, 0);
|
||||
MODULE_DEPEND(gntdev, xenpv, 1, 1, 1);
|
||||
|
@ -675,7 +675,6 @@ static device_method_t granttable_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(granttable, granttable_driver, granttable_methods, 0);
|
||||
devclass_t granttable_devclass;
|
||||
|
||||
DRIVER_MODULE_ORDERED(granttable, xenpv, granttable_driver, granttable_devclass,
|
||||
NULL, NULL, SI_ORDER_FIRST);
|
||||
DRIVER_MODULE_ORDERED(granttable, xenpv, granttable_driver, NULL, NULL,
|
||||
SI_ORDER_FIRST);
|
||||
|
@ -2495,9 +2495,8 @@ static driver_t xnb_driver = {
|
||||
xnb_methods,
|
||||
sizeof(struct xnb_softc),
|
||||
};
|
||||
devclass_t xnb_devclass;
|
||||
|
||||
DRIVER_MODULE(xnb, xenbusb_back, xnb_driver, xnb_devclass, 0, 0);
|
||||
DRIVER_MODULE(xnb, xenbusb_back, xnb_driver, 0, 0);
|
||||
|
||||
/*-------------------------- Unit Tests -------------------------------------*/
|
||||
#ifdef XNB_DEBUG
|
||||
|
@ -2336,7 +2336,5 @@ static driver_t netfront_driver = {
|
||||
netfront_methods,
|
||||
sizeof(struct netfront_info),
|
||||
};
|
||||
devclass_t netfront_devclass;
|
||||
|
||||
DRIVER_MODULE(xe, xenbusb_front, netfront_driver, netfront_devclass, NULL,
|
||||
NULL);
|
||||
DRIVER_MODULE(xe, xenbusb_front, netfront_driver, NULL, NULL);
|
||||
|
@ -607,7 +607,5 @@ static driver_t privcmd_driver = {
|
||||
0,
|
||||
};
|
||||
|
||||
devclass_t privcmd_devclass;
|
||||
|
||||
DRIVER_MODULE(privcmd, xenpv, privcmd_driver, privcmd_devclass, 0, 0);
|
||||
DRIVER_MODULE(privcmd, xenpv, privcmd_driver, 0, 0);
|
||||
MODULE_DEPEND(privcmd, xenpv, 1, 1, 1);
|
||||
|
@ -68,8 +68,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "clock_if.h"
|
||||
|
||||
static devclass_t xentimer_devclass;
|
||||
|
||||
#define NSEC_IN_SEC 1000000000ULL
|
||||
#define NSEC_IN_USEC 1000ULL
|
||||
/* 18446744073 = int(2^64 / NSEC_IN_SC) = 1 ns in 64-bit fractions */
|
||||
@ -555,5 +553,5 @@ static driver_t xentimer_driver = {
|
||||
sizeof(struct xentimer_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(xentimer, xenpv, xentimer_driver, xentimer_devclass, 0, 0);
|
||||
DRIVER_MODULE(xentimer, xenpv, xentimer_driver, 0, 0);
|
||||
MODULE_DEPEND(xentimer, xenpv, 1, 1, 1);
|
||||
|
@ -52,11 +52,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <dev/xen/xenpci/xenpcivar.h>
|
||||
|
||||
/*
|
||||
* This is used to find our platform device instance.
|
||||
*/
|
||||
static devclass_t xenpci_devclass;
|
||||
|
||||
static int
|
||||
xenpci_intr_filter(void *trap_frame)
|
||||
{
|
||||
@ -236,4 +231,4 @@ static driver_t xenpci_driver = {
|
||||
sizeof(struct xenpci_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(xenpci, pci, xenpci_driver, xenpci_devclass, 0, 0);
|
||||
DRIVER_MODULE(xenpci, pci, xenpci_driver, 0, 0);
|
||||
|
@ -1237,9 +1237,8 @@ static device_method_t xenstore_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0);
|
||||
static devclass_t xenstore_devclass;
|
||||
|
||||
DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0);
|
||||
DRIVER_MODULE(xenstore, xenpv, xenstore_driver, 0, 0);
|
||||
|
||||
/*------------------------------- Sysctl Data --------------------------------*/
|
||||
/* XXX Shouldn't the node be somewhere else? */
|
||||
|
@ -544,7 +544,5 @@ static device_method_t xs_dev_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(xs_dev, xs_dev_driver, xs_dev_methods, 0);
|
||||
devclass_t xs_dev_devclass;
|
||||
|
||||
DRIVER_MODULE(xs_dev, xenstore, xs_dev_driver, xs_dev_devclass,
|
||||
NULL, NULL);
|
||||
DRIVER_MODULE(xs_dev, xenstore, xs_dev_driver, NULL, NULL);
|
||||
|
@ -158,7 +158,5 @@ static device_method_t xsd_dev_methods[] = {
|
||||
};
|
||||
|
||||
DEFINE_CLASS_0(xsd_dev, xsd_dev_driver, xsd_dev_methods, 0);
|
||||
devclass_t xsd_dev_devclass;
|
||||
|
||||
DRIVER_MODULE(xsd_dev, xenpv, xsd_dev_driver, xsd_dev_devclass,
|
||||
NULL, NULL);
|
||||
DRIVER_MODULE(xsd_dev, xenpv, xsd_dev_driver, NULL, NULL);
|
||||
|
@ -312,7 +312,5 @@ static device_method_t xenbusb_back_methods[] = {
|
||||
|
||||
DEFINE_CLASS_0(xenbusb_back, xenbusb_back_driver, xenbusb_back_methods,
|
||||
sizeof(struct xenbusb_softc));
|
||||
devclass_t xenbusb_back_devclass;
|
||||
|
||||
DRIVER_MODULE(xenbusb_back, xenstore, xenbusb_back_driver,
|
||||
xenbusb_back_devclass, 0, 0);
|
||||
DRIVER_MODULE(xenbusb_back, xenstore, xenbusb_back_driver, 0, 0);
|
||||
|
@ -189,7 +189,5 @@ static device_method_t xenbusb_front_methods[] = {
|
||||
|
||||
DEFINE_CLASS_0(xenbusb_front, xenbusb_front_driver, xenbusb_front_methods,
|
||||
sizeof(struct xenbusb_softc));
|
||||
devclass_t xenbusb_front_devclass;
|
||||
|
||||
DRIVER_MODULE(xenbusb_front, xenstore, xenbusb_front_driver,
|
||||
xenbusb_front_devclass, 0, 0);
|
||||
DRIVER_MODULE(xenbusb_front, xenstore, xenbusb_front_driver, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user