diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-12-30 01:10:17 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-12-30 01:10:17 +0000 |
commit | 79099f44bf7f446ca5988a0181cd11e4c9ff436a (patch) | |
tree | f1e0855e2d850383ad9d31f501476d331e96becf /sys/dev/ic/malo.c | |
parent | f5590902ffd1b26c700f70f5895abb62c4611212 (diff) |
Why doing something as complex as for () bus_space_write_1(); when there
is bus_space_write_region_1() that does the same. OK mglocker@
Diffstat (limited to 'sys/dev/ic/malo.c')
-rw-r--r-- | sys/dev/ic/malo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index fbf32c1335f..ce30f91284e 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.52 2006/12/29 20:27:50 mglocker Exp $ */ +/* $OpenBSD: malo.c,v 1.53 2006/12/30 01:10:16 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -1773,7 +1773,7 @@ malo_load_bootimg(struct malo_softc *sc) { char *name = "mrv8k-b.fw"; uint8_t *ucode; - size_t size, count; + size_t size; int error; /* load boot firmware */ @@ -1793,8 +1793,8 @@ malo_load_bootimg(struct malo_softc *sc) malo_mem_write2(sc, 0xbefa, size); malo_mem_write4(sc, 0xbefc, 0); - for (count = 0; count < size; count++) - malo_mem_write1(sc, 0xbf00 + count, ucode[count]); + bus_space_write_region_1(sc->sc_mem1_bt, sc->sc_mem1_bh, 0xbf00, + ucode, size); /* * we loaded the firmware into card memory now tell the CPU |