diff options
author | Dmitri Vorobiev <dmitri.vorobiev@gmail.com> | 2008-01-24 11:52:41 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:15:03 -0500 |
commit | 4ca765135414e85c80f0a68bb35189472bb9ad1e (patch) | |
tree | 7640b62b21f1973607ea730eb1e4bae25a2e4490 /arch/mips | |
parent | 12323cacca2014dcf517d1988fcdb8e44a1f497b (diff) |
[MIPS] Malta: use Linux kernel style for structure initialization
This patch reformats the structure initialization code thus
making the latter look idiomatic.
No functional changes introduced.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mips-boards/malta/malta_setup.c | 56 |
1 files changed, 42 insertions, 14 deletions
diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c index bc43a5c2224d..d051405a2809 100644 --- a/arch/mips/mips-boards/malta/malta_setup.c +++ b/arch/mips/mips-boards/malta/malta_setup.c | |||
@@ -43,11 +43,36 @@ extern void kgdb_config(void); | |||
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | struct resource standard_io_resources[] = { | 45 | struct resource standard_io_resources[] = { |
46 | { .name = "dma1", .start = 0x00, .end = 0x1f, .flags = IORESOURCE_BUSY }, | 46 | { |
47 | { .name = "timer", .start = 0x40, .end = 0x5f, .flags = IORESOURCE_BUSY }, | 47 | .name = "dma1", |
48 | { .name = "keyboard", .start = 0x60, .end = 0x6f, .flags = IORESOURCE_BUSY }, | 48 | .start = 0x00, |
49 | { .name = "dma page reg", .start = 0x80, .end = 0x8f, .flags = IORESOURCE_BUSY }, | 49 | .end = 0x1f, |
50 | { .name = "dma2", .start = 0xc0, .end = 0xdf, .flags = IORESOURCE_BUSY }, | 50 | .flags = IORESOURCE_BUSY |
51 | }, | ||
52 | { | ||
53 | .name = "timer", | ||
54 | .start = 0x40, | ||
55 | .end = 0x5f, | ||
56 | .flags = IORESOURCE_BUSY | ||
57 | }, | ||
58 | { | ||
59 | .name = "keyboard", | ||
60 | .start = 0x60, | ||
61 | .end = 0x6f, | ||
62 | .flags = IORESOURCE_BUSY | ||
63 | }, | ||
64 | { | ||
65 | .name = "dma page reg", | ||
66 | .start = 0x80, | ||
67 | .end = 0x8f, | ||
68 | .flags = IORESOURCE_BUSY | ||
69 | }, | ||
70 | { | ||
71 | .name = "dma2", | ||
72 | .start = 0xc0, | ||
73 | .end = 0xdf, | ||
74 | .flags = IORESOURCE_BUSY | ||
75 | }, | ||
51 | }; | 76 | }; |
52 | 77 | ||
53 | const char *get_system_type(void) | 78 | const char *get_system_type(void) |
@@ -171,15 +196,18 @@ void __init plat_mem_setup(void) | |||
171 | #ifdef CONFIG_VT | 196 | #ifdef CONFIG_VT |
172 | #if defined(CONFIG_VGA_CONSOLE) | 197 | #if defined(CONFIG_VGA_CONSOLE) |
173 | screen_info = (struct screen_info) { | 198 | screen_info = (struct screen_info) { |
174 | 0, 25, /* orig-x, orig-y */ | 199 | .orig_x = 0, |
175 | 0, /* unused */ | 200 | .orig_y = 25, |
176 | 0, /* orig-video-page */ | 201 | .ext_mem_k = 0, |
177 | 0, /* orig-video-mode */ | 202 | .orig_video_page = 0, |
178 | 80, /* orig-video-cols */ | 203 | .orig_video_mode = 0, |
179 | 0, 0, 0, /* ega_ax, ega_bx, ega_cx */ | 204 | .orig_video_cols = 80, |
180 | 25, /* orig-video-lines */ | 205 | .unused2 = 0, |
181 | VIDEO_TYPE_VGAC, /* orig-video-isVGA */ | 206 | .orig_video_ega_bx = 0, |
182 | 16 /* orig-video-points */ | 207 | .unused3 = 0, |
208 | .orig_video_lines = 25, | ||
209 | .orig_video_isVGA = VIDEO_TYPE_VGAC, | ||
210 | .orig_video_points = 16 | ||
183 | }; | 211 | }; |
184 | #endif | 212 | #endif |
185 | #endif | 213 | #endif |