Use DEVMETHOD_END instead of its value to indicate end of methods table

This commit is contained in:
gonzo 2016-05-11 00:34:43 +00:00
parent 938b33653f
commit d51ad091d9
3 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ static device_method_t gpioc_methods[] = {
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
{ 0, 0 }
DEVMETHOD_END
};
driver_t gpioc_driver = {

View File

@ -272,7 +272,7 @@ static device_method_t gpioiic_methods[] = {
DEVMETHOD(ofw_bus_get_node, gpioiic_get_node),
#endif
{ 0, 0 }
DEVMETHOD_END
};
static driver_t gpioiic_driver = {

View File

@ -245,7 +245,7 @@ static device_method_t gpioled_methods[] = {
DEVMETHOD(device_attach, gpioled_attach),
DEVMETHOD(device_detach, gpioled_detach),
{ 0, 0 }
DEVMETHOD_END
};
static driver_t gpioled_driver = {