xen/dev: switch to DEVMETHOD_END

Switch to the preferred end of the device method table.  These hadn't
been updated previously.

Reviewed by: royger
This commit is contained in:
Elliott Mitchell 2023-09-11 14:37:20 -07:00 committed by Roger Pau Monné
parent c5c26f15f8
commit 3e5e0e2f16
6 changed files with 11 additions and 6 deletions

View file

@ -3777,7 +3777,8 @@ static device_method_t xbb_methods[] = {
/* Xenbus interface */
DEVMETHOD(xenbus_otherend_changed, xbb_frontend_changed),
{ 0, 0 }
DEVMETHOD_END
};
static driver_t xbb_driver = {

View file

@ -1633,7 +1633,7 @@ static device_method_t xbd_methods[] = {
/* Xenbus interface */
DEVMETHOD(xenbus_otherend_changed, xbd_backend_changed),
{ 0, 0 }
DEVMETHOD_END
};
static driver_t xbd_driver = {

View file

@ -2485,7 +2485,8 @@ static device_method_t xnb_methods[] = {
/* Xenbus interface */
DEVMETHOD(xenbus_otherend_changed, xnb_frontend_changed),
{ 0, 0 }
DEVMETHOD_END
};
static driver_t xnb_driver = {

View file

@ -212,7 +212,8 @@ static device_method_t xenpci_methods[] = {
DEVMETHOD(device_attach, xenpci_attach),
DEVMETHOD(device_detach, xenpci_detach),
DEVMETHOD(device_resume, xenpci_resume),
{ 0, 0 }
DEVMETHOD_END
};
static driver_t xenpci_driver = {

View file

@ -305,7 +305,8 @@ static device_method_t xenbusb_back_methods[] = {
DEVMETHOD(xenbusb_get_otherend_node, xenbusb_back_get_otherend_node),
DEVMETHOD(xenbusb_otherend_changed, xenbusb_back_otherend_changed),
DEVMETHOD(xenbusb_localend_changed, xenbusb_back_localend_changed),
{ 0, 0 }
DEVMETHOD_END
};
DEFINE_CLASS_0(xenbusb_back, xenbusb_back_driver, xenbusb_back_methods,

View file

@ -182,7 +182,8 @@ static device_method_t xenbusb_front_methods[] = {
/* XenBus Bus Interface */
DEVMETHOD(xenbusb_enumerate_type, xenbusb_front_enumerate_type),
DEVMETHOD(xenbusb_get_otherend_node, xenbusb_front_get_otherend_node),
{ 0, 0 }
DEVMETHOD_END
};
DEFINE_CLASS_0(xenbusb_front, xenbusb_front_driver, xenbusb_front_methods,