diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-04-03 15:36:04 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-04-03 15:36:04 +0000 |
commit | 000aa3a35a0346024da8aeb1ddd117a714ab1a98 (patch) | |
tree | e30c1afbb9ad547a742ef2e358c4067139433873 /sys/dev/pci/cs4281.c | |
parent | 445a93dfa951cfdb8d9253fd13836d6a25a4ac4b (diff) |
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/cs4281.c')
-rw-r--r-- | sys/dev/pci/cs4281.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c index 707a7219204..6c3fe26f45b 100644 --- a/sys/dev/pci/cs4281.c +++ b/sys/dev/pci/cs4281.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4281.c,v 1.26 2010/09/22 22:22:47 jakemsr Exp $ */ +/* $OpenBSD: cs4281.c,v 1.27 2011/04/03 15:36:02 jasper Exp $ */ /* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */ /* @@ -1505,7 +1505,7 @@ cs4281_allocmem(struct cs4281_softc *sc, size_t size, int pool, int flags, if (!p->dum) return (1); error = bus_dmamem_alloc(sc->sc_dmatag, p->size, align, 0, - p->segs, sizeof(p->segs)/sizeof(p->segs[0]), + p->segs, nitems(p->segs), &p->nsegs, BUS_DMA_NOWAIT); if (error) { printf("%s: unable to allocate dma. error=%d\n", |