diff options
author | Warren Block <wblock@FreeBSD.org> | 2013-01-30 21:59:25 +0000 |
---|---|---|
committer | Warren Block <wblock@FreeBSD.org> | 2013-01-30 21:59:25 +0000 |
commit | 37bd5eb61453e79d2c6dfc1cc7883c0aada8881b (patch) | |
tree | 479d8e6221a2b8054ba28c267406293c532cdf00 /en_US.ISO8859-1/books/arch-handbook/pci | |
parent | 6c2f7d2fa7c4d08b9a6a16b992babe44dca70fe9 (diff) | |
download | doc-37bd5eb61453e79d2c6dfc1cc7883c0aada8881b.tar.gz doc-37bd5eb61453e79d2c6dfc1cc7883c0aada8881b.zip |
Replace "{ 0, 0 }" with "DEVMETHOD_END" in isa and pci sample drivers.
Submitted by: sbz
Notes
Notes:
svn path=/head/; revision=40837
Diffstat (limited to 'en_US.ISO8859-1/books/arch-handbook/pci')
-rw-r--r-- | en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml | 4 |
1 files changed, 2 insertions, 2 deletions
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; |