From 8ea2c88ec2ec40dc2911a253823c6fed64d5400e Mon Sep 17 00:00:00 2001 From: eeh Date: Wed, 20 Mar 2002 17:59:16 +0000 Subject: [PATCH] Clean up bus space a bit. XXX is sc_buffer ever actually used after it's mapped in? --- sys/dev/sbus/qec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/sbus/qec.c b/sys/dev/sbus/qec.c index 014f0e52109e..1dfeb55c93c0 100644 --- a/sys/dev/sbus/qec.c +++ b/sys/dev/sbus/qec.c @@ -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 -__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 #include @@ -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 */