Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2013 21:59:25 +0000 (UTC)
From:      Warren Block <wblock@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r40837 - in head/en_US.ISO8859-1/books/arch-handbook: isa pci
Message-ID:  <201301302159.r0ULxPrF005255@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wblock
Date: Wed Jan 30 21:59:25 2013
New Revision: 40837
URL: http://svnweb.freebsd.org/changeset/doc/40837

Log:
  Replace "{ 0, 0 }" with "DEVMETHOD_END" in isa and pci sample drivers.
  
  Submitted by:	sbz

Modified:
  head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml
  head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml

Modified: head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml	Wed Jan 30 21:17:46 2013	(r40836)
+++ head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml	Wed Jan 30 21:59:25 2013	(r40837)
@@ -146,7 +146,7 @@
         DEVMETHOD(device_suspend,   xxx_isa_suspend),
         DEVMETHOD(device_resume,    xxx_isa_resume),
 
-	{ 0, 0 }
+	DEVMETHOD_END
     };
 
     static driver_t xxx_isa_driver = {

Modified: head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml	Wed Jan 30 21:17:46 2013	(r40836)
+++ head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml	Wed Jan 30 21:59:25 2013	(r40837)
@@ -37,7 +37,7 @@
 #include &lt;sys/conf.h&gt;		/* cdevsw struct */
 #include &lt;sys/uio.h&gt;		/* uio struct */
 #include &lt;sys/malloc.h&gt;
-#include &lt;sys/bus.h&gt;		/* structs, prototypes for pci bus stuff */
+#include &lt;sys/bus.h&gt;		/* structs, prototypes for pci bus stuff and DEVMETHOD macros! */
 
 #include &lt;machine/bus.h&gt;
 #include &lt;sys/rman.h&gt;
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301302159.r0ULxPrF005255>