diff options
author | roger <roger@FreeBSD.org> | 1999-05-10 10:08:05 +0000 |
---|---|---|
committer | roger <roger@FreeBSD.org> | 1999-05-10 10:08:05 +0000 |
commit | bead07be56e36f9812c0a0dd13c28450775c52f5 (patch) | |
tree | 9c15f72934eccb0fa9722ae58219f475d3bdfac8 | |
parent | 2f539e7c63c72fee3ccac7f325373bc3c02ec4b7 (diff) | |
download | FreeBSD-src-bead07be56e36f9812c0a0dd13c28450775c52f5.zip FreeBSD-src-bead07be56e36f9812c0a0dd13c28450775c52f5.tar.gz |
Add #if (NSMBUS>0) checks around smbus/iicbus i2c bus code.
-rw-r--r-- | sys/dev/bktr/bktr_i2c.c | 11 | ||||
-rw-r--r-- | sys/pci/bt848_i2c.c | 11 |
2 files changed, 14 insertions, 8 deletions
diff --git a/sys/dev/bktr/bktr_i2c.c b/sys/dev/bktr/bktr_i2c.c index 63ea8d0..8aa2de0 100644 --- a/sys/dev/bktr/bktr_i2c.c +++ b/sys/dev/bktr/bktr_i2c.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bt848_i2c.c,v 1.2 1998/11/07 14:30:48 nsouch Exp $ + * $Id: bt848_i2c.c,v 1.3 1999/05/08 21:59:38 dfr Exp $ * */ @@ -33,6 +33,12 @@ * From brooktree848.c <fsmp@freefall.org> */ +#include "pci.h" +#include "bktr.h" +#include "smbus.h" + +#if (NBKTR > 0 && NPCI > 0 && NSMBUS > 0) + #include <sys/param.h> #include <sys/kernel.h> #include <sys/systm.h> @@ -61,10 +67,7 @@ #include "iicbb_if.h" #include "smbus_if.h" -#include "pci.h" -#include "bktr.h" -#if (NBKTR > 0 && NPCI > 0) #define I2C_DELAY 40 diff --git a/sys/pci/bt848_i2c.c b/sys/pci/bt848_i2c.c index 63ea8d0..8aa2de0 100644 --- a/sys/pci/bt848_i2c.c +++ b/sys/pci/bt848_i2c.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bt848_i2c.c,v 1.2 1998/11/07 14:30:48 nsouch Exp $ + * $Id: bt848_i2c.c,v 1.3 1999/05/08 21:59:38 dfr Exp $ * */ @@ -33,6 +33,12 @@ * From brooktree848.c <fsmp@freefall.org> */ +#include "pci.h" +#include "bktr.h" +#include "smbus.h" + +#if (NBKTR > 0 && NPCI > 0 && NSMBUS > 0) + #include <sys/param.h> #include <sys/kernel.h> #include <sys/systm.h> @@ -61,10 +67,7 @@ #include "iicbb_if.h" #include "smbus_if.h" -#include "pci.h" -#include "bktr.h" -#if (NBKTR > 0 && NPCI > 0) #define I2C_DELAY 40 |