Skip to content

Commit

Permalink
[ARM] ARRAY_SIZE() cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Alejandro Martinez Ruiz authored and Russell King committed Jan 26, 2008
1 parent 2fd2b12 commit df1a290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/dma-isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit df1a290

Please sign in to comment.