projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd2b12
)
[ARM] ARRAY_SIZE() cleanup
author
Alejandro Martinez Ruiz
<alex@flawedcode.org>
Wed, 17 Oct 2007 10:14:25 +0000
(12:14 +0200)
committer
Russell 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
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/dma-isa.c
b/arch/arm/kernel/dma-isa.c
index 0a3e9ad297d8ba8be45967e811be5d226941eb90..2f080a35a2d9240181a6edd745394e0942a128e2 100644
(file)
--- a/
arch/arm/kernel/dma-isa.c
+++ b/
arch/arm/kernel/dma-isa.c
@@
-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);
}
}