]> err.no Git - linux-2.6/commitdiff
[ARM] ARRAY_SIZE() cleanup
authorAlejandro Martinez Ruiz <alex@flawedcode.org>
Wed, 17 Oct 2007 10:14:25 +0000 (12:14 +0200)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 14:49:57 +0000 (14:49 +0000)
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/dma-isa.c

index 0a3e9ad297d8ba8be45967e811be5d226941eb90..2f080a35a2d9240181a6edd745394e0942a128e2 100644 (file)
@@ -216,7 +216,7 @@ void __init isa_init_dma(dma_t *dma)
 
                request_dma(DMA_ISA_CASCADE, "cascade");
 
-               for (i = 0; i < sizeof(dma_resources) / sizeof(dma_resources[0]); i++)
+               for (i = 0; i < ARRAY_SIZE(dma_resources); i++)
                        request_resource(&ioport_resource, dma_resources + i);
        }
 }