Per leo@netbsd.org: Don't call isa_dmainit() if NISADMA == 0.
This commit is contained in:
parent
127d319668
commit
c5a827e7f6
|
@ -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
|
* Copyright 1997, 1998
|
||||||
|
@ -44,6 +44,8 @@
|
||||||
#include <dev/isa/isavar.h>
|
#include <dev/isa/isavar.h>
|
||||||
#include <dev/ofisa/ofisavar.h>
|
#include <dev/ofisa/ofisavar.h>
|
||||||
|
|
||||||
|
#include "isadma.h"
|
||||||
|
|
||||||
#define OFW_MAX_STACK_BUF_SIZE 256
|
#define OFW_MAX_STACK_BUF_SIZE 256
|
||||||
|
|
||||||
static int ofisamatch __P((struct device *, struct cfdata *, void *));
|
static int ofisamatch __P((struct device *, struct cfdata *, void *));
|
||||||
|
@ -111,10 +113,12 @@ ofisaattach(parent, self, aux)
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
#if NISADMA > 0
|
||||||
/*
|
/*
|
||||||
* Initialize our DMA state.
|
* Initialize our DMA state.
|
||||||
*/
|
*/
|
||||||
isa_dmainit(iba.iba_ic, iba.iba_iot, iba.iba_dmat, self);
|
isa_dmainit(iba.iba_ic, iba.iba_iot, iba.iba_dmat, self);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (child = OF_child(oba->oba_phandle); child;
|
for (child = OF_child(oba->oba_phandle); child;
|
||||||
child = OF_peer(child)) {
|
child = OF_peer(child)) {
|
||||||
|
|
Loading…
Reference in New Issue