Commit 3170a5e8 authored by Adrian Bunk's avatar Adrian Bunk Committed by Russell King

[ARM] arch/arm/kernel/dma-isa.c: named initializers

This patch converts struct dma_resources to named initializers.

Besides fixing a compile error in -mm, it didn't sound like a bad idea.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarAlexander Schulz <alex@shark-linux.de>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bb1a2aa6
...@@ -143,12 +143,23 @@ static struct dma_ops isa_dma_ops = { ...@@ -143,12 +143,23 @@ static struct dma_ops isa_dma_ops = {
.residue = isa_get_dma_residue, .residue = isa_get_dma_residue,
}; };
static struct resource dma_resources[] = { static struct resource dma_resources[] = { {
{ "dma1", 0x0000, 0x000f }, .name = "dma1",
{ "dma low page", 0x0080, 0x008f }, .start = 0x0000,
{ "dma2", 0x00c0, 0x00df }, .end = 0x000f
{ "dma high page", 0x0480, 0x048f } }, {
}; .name = "dma low page",
.start = 0x0080,
.end = 0x008f
}, {
.name = "dma2",
.start = 0x00c0,
.end = 0x00df
}, {
.name = "dma high page",
.start = 0x0480,
.end = 0x048f
} };
void __init isa_init_dma(dma_t *dma) void __init isa_init_dma(dma_t *dma)
{ {
......
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