diff options
Diffstat (limited to 'sys/dev/sbus/cs4231.c')
-rw-r--r-- | sys/dev/sbus/cs4231.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sbus/cs4231.c b/sys/dev/sbus/cs4231.c index 358b6deeec5..cac922a1e11 100644 --- a/sys/dev/sbus/cs4231.c +++ b/sys/dev/sbus/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.30 2010/07/15 03:43:11 jakemsr Exp $ */ +/* $OpenBSD: cs4231.c,v 1.31 2011/04/05 19:54:35 jasper Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -1439,7 +1439,7 @@ cs4231_alloc(void *vsc, int direction, size_t size, int pool, int flags) p->size = size; if (bus_dmamem_alloc(dmat, size, 64*1024, 0, p->segs, - sizeof(p->segs)/sizeof(p->segs[0]), &p->nsegs, + nitems(p->segs), &p->nsegs, BUS_DMA_NOWAIT) != 0) goto fail1; |