summaryrefslogtreecommitdiff
path: root/arch/mips/jmr3927/rbhma3100
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2007-02-05 02:42:11 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2007-02-06 16:53:19 (GMT)
commit25b8ac3ba46ee3d586a9c00c1771dca58314714e (patch)
tree21cd719307ab78f18ca6cb82a56310e27a89b021 /arch/mips/jmr3927/rbhma3100
parent3e7f9b8254b82f7261b2c56ffaf864198c135ee5 (diff)
downloadlinux-25b8ac3ba46ee3d586a9c00c1771dca58314714e.tar.xz
[MIPS] Use ARRAY_SIZE macro when appropriate
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/jmr3927/rbhma3100')
-rw-r--r--arch/mips/jmr3927/rbhma3100/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/jmr3927/rbhma3100/setup.c b/arch/mips/jmr3927/rbhma3100/setup.c
index 138f25e..7ca3d6d 100644
--- a/arch/mips/jmr3927/rbhma3100/setup.c
+++ b/arch/mips/jmr3927/rbhma3100/setup.c
@@ -434,7 +434,7 @@ void __init tx3927_setup(void)
/* DMA */
tx3927_dmaptr->mcr = 0;
- for (i = 0; i < sizeof(tx3927_dmaptr->ch) / sizeof(tx3927_dmaptr->ch[0]); i++) {
+ for (i = 0; i < ARRAY_SIZE(tx3927_dmaptr->ch); i++) {
/* reset channel */
tx3927_dmaptr->ch[i].ccr = TX3927_DMA_CCR_CHRST;
tx3927_dmaptr->ch[i].ccr = 0;