Skip to content

Commit 3170a5e

Browse files
AdrianBunkRussell King
authored andcommitted
[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: Adrian Bunk <[email protected]> Acked-by: Alexander Schulz <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent bb1a2aa commit 3170a5e

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

arch/arm/kernel/dma-isa.c

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,23 @@ static struct dma_ops isa_dma_ops = {
143143
.residue = isa_get_dma_residue,
144144
};
145145

146-
static struct resource dma_resources[] = {
147-
{ "dma1", 0x0000, 0x000f },
148-
{ "dma low page", 0x0080, 0x008f },
149-
{ "dma2", 0x00c0, 0x00df },
150-
{ "dma high page", 0x0480, 0x048f }
151-
};
146+
static struct resource dma_resources[] = { {
147+
.name = "dma1",
148+
.start = 0x0000,
149+
.end = 0x000f
150+
}, {
151+
.name = "dma low page",
152+
.start = 0x0080,
153+
.end = 0x008f
154+
}, {
155+
.name = "dma2",
156+
.start = 0x00c0,
157+
.end = 0x00df
158+
}, {
159+
.name = "dma high page",
160+
.start = 0x0480,
161+
.end = 0x048f
162+
} };
152163

153164
void __init isa_init_dma(dma_t *dma)
154165
{

0 commit comments

Comments
 (0)