Clean up bus space a bit. XXX is sc_buffer ever actually used after it's

mapped in?
This commit is contained in:
eeh 2002-03-20 17:59:16 +00:00
parent ddbdd7fa41
commit 8ea2c88ec2
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: qec.c,v 1.18 2002/03/11 16:00:57 pk Exp $ */
/* $NetBSD: qec.c,v 1.19 2002/03/20 17:59:16 eeh Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: qec.c,v 1.18 2002/03/11 16:00:57 pk Exp $");
__KERNEL_RCSID(0, "$NetBSD: qec.c,v 1.19 2002/03/20 17:59:16 eeh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -134,7 +134,7 @@ qecattach(parent, self, aux)
sa->sa_reg[0].sbr_slot,
sa->sa_reg[0].sbr_offset,
sa->sa_reg[0].sbr_size,
BUS_SPACE_MAP_LINEAR, &sc->sc_regs) != 0) {
0, &sc->sc_regs) != 0) {
printf("%s: attach: cannot map registers\n", self->dv_xname);
return;
}
@ -152,7 +152,7 @@ qecattach(parent, self, aux)
printf("%s: attach: cannot map registers\n", self->dv_xname);
return;
}
sc->sc_buffer = (caddr_t)(u_long)bh;
sc->sc_buffer = (caddr_t)bus_space_vaddr(sa->sa_bustag, bh);
sc->sc_bufsiz = (bus_size_t)sa->sa_reg[1].sbr_size;
/* Get number of on-board channels */