From 37bd5eb61453e79d2c6dfc1cc7883c0aada8881b Mon Sep 17 00:00:00 2001 From: Warren Block Date: Wed, 30 Jan 2013 21:59:25 +0000 Subject: Replace "{ 0, 0 }" with "DEVMETHOD_END" in isa and pci sample drivers. Submitted by: sbz --- en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'en_US.ISO8859-1/books/arch-handbook/pci') diff --git a/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml b/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml index 272b6aab3e..0365ea0f85 100644 --- a/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml +++ b/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml @@ -37,7 +37,7 @@ #include <sys/conf.h> /* cdevsw struct */ #include <sys/uio.h> /* uio struct */ #include <sys/malloc.h> -#include <sys/bus.h> /* structs, prototypes for pci bus stuff */ +#include <sys/bus.h> /* structs, prototypes for pci bus stuff and DEVMETHOD macros! */ #include <machine/bus.h> #include <sys/rman.h> @@ -221,7 +221,7 @@ static device_method_t mypci_methods[] = { DEVMETHOD(device_suspend, mypci_suspend), DEVMETHOD(device_resume, mypci_resume), - { 0, 0 } + DEVMETHOD_END }; static devclass_t mypci_devclass; -- cgit v1.2.3