Author: gonzo Date: Wed May 11 00:34:43 2016 New Revision: 299396 URL: https://svnweb.freebsd.org/changeset/base/299396
Log: Use DEVMETHOD_END instead of its value to indicate end of methods table Modified: head/sys/dev/gpio/gpioc.c head/sys/dev/gpio/gpioiic.c head/sys/dev/gpio/gpioled.c Modified: head/sys/dev/gpio/gpioc.c ============================================================================== --- head/sys/dev/gpio/gpioc.c Wed May 11 00:26:52 2016 (r299395) +++ head/sys/dev/gpio/gpioc.c Wed May 11 00:34:43 2016 (r299396) @@ -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 = { Modified: head/sys/dev/gpio/gpioiic.c ============================================================================== --- head/sys/dev/gpio/gpioiic.c Wed May 11 00:26:52 2016 (r299395) +++ head/sys/dev/gpio/gpioiic.c Wed May 11 00:34:43 2016 (r299396) @@ -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 = { Modified: head/sys/dev/gpio/gpioled.c ============================================================================== --- head/sys/dev/gpio/gpioled.c Wed May 11 00:26:52 2016 (r299395) +++ head/sys/dev/gpio/gpioled.c Wed May 11 00:34:43 2016 (r299396) @@ -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 = { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"