From c5a827e7f66556e237cdea49af90c8b9bb4957eb Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 11 Jun 1998 08:43:01 +0000 Subject: [PATCH] Per leo@netbsd.org: Don't call isa_dmainit() if NISADMA == 0. --- sys/dev/ofisa/ofisa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/ofisa/ofisa.c b/sys/dev/ofisa/ofisa.c index 39adb5916dc6..ba5e3c7196d1 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 #include +#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)) {