summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-05-31 19:12:57 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-05-31 19:12:57 +0000
commitaea9077f84985d0d79a0430260fcd7fb56a53635 (patch)
tree630d2f36b655102e5402f6ce2181575fc7b203df /sys/dev
parent0ffb416dc97b3a9e9fb8f417075d38b9a49ec1c4 (diff)
fix the myx_write function
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_myx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c
index a0713c8fa4d..657727e1366 100644
--- a/sys/dev/pci/if_myx.c
+++ b/sys/dev/pci/if_myx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myx.c,v 1.1 2007/05/31 18:23:42 reyk Exp $ */
+/* $OpenBSD: if_myx.c,v 1.2 2007/05/31 19:12:56 reyk Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -473,7 +473,7 @@ myx_read(struct myx_softc *sc, bus_size_t off, u_int8_t *ptr, bus_size_t len)
void
myx_write(struct myx_softc *sc, bus_size_t off, u_int8_t *ptr, bus_size_t len)
{
- bus_space_write_region_4(sc->sc_memt, sc->sc_memh, off, ptr, len);
+ bus_space_write_region_1(sc->sc_memt, sc->sc_memh, off, ptr, len);
bus_space_barrier(sc->sc_memt, sc->sc_memh, off, len,
BUS_SPACE_BARRIER_WRITE);
}