summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1998-06-11 08:43:01 +0000
committerthorpej <thorpej@NetBSD.org>1998-06-11 08:43:01 +0000
commitc5a827e7f66556e237cdea49af90c8b9bb4957eb (patch)
treec257cbf5be18692347bedafb56056bf3cf9ab95f /sys/dev
parent127d3196683841714b1333f1fac04defc0dae705 (diff)
Per leo@netbsd.org: Don't call isa_dmainit() if NISADMA == 0.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ofisa/ofisa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ofisa/ofisa.c b/sys/dev/ofisa/ofisa.c
index 39adb5916dc..ba5e3c7196d 100644
--- a/sys/dev/ofisa/ofisa.c
+++ b/sys/dev/ofisa/ofisa.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ofisa.c,v 1.4 1998/06/10 16:48:21 tv Exp $ */
+/* $NetBSD: ofisa.c,v 1.5 1998/06/11 08:43:01 thorpej Exp $ */
/*
* Copyright 1997, 1998
@@ -44,6 +44,8 @@
#include <dev/isa/isavar.h>
#include <dev/ofisa/ofisavar.h>
+#include "isadma.h"
+
#define OFW_MAX_STACK_BUF_SIZE 256
static int ofisamatch __P((struct device *, struct cfdata *, void *));
@@ -111,10 +113,12 @@ ofisaattach(parent, self, aux)
printf("\n");
+#if NISADMA > 0
/*
* Initialize our DMA state.
*/
isa_dmainit(iba.iba_ic, iba.iba_iot, iba.iba_dmat, self);
+#endif
for (child = OF_child(oba->oba_phandle); child;
child = OF_peer(child)) {