Commit df1a2903 authored by Alejandro Martinez Ruiz's avatar Alejandro Martinez Ruiz Committed by Russell King

[ARM] ARRAY_SIZE() cleanup

Signed-off-by: default avatarAlejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 2fd2b124
...@@ -216,7 +216,7 @@ void __init isa_init_dma(dma_t *dma) ...@@ -216,7 +216,7 @@ void __init isa_init_dma(dma_t *dma)
request_dma(DMA_ISA_CASCADE, "cascade"); 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); request_resource(&ioport_resource, dma_resources + i);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment