Commit a0eb8972 authored by Russell King's avatar Russell King

[ARM] Convert more structure initialisers to C99 syntax.

parent 70ba5e7c
...@@ -54,39 +54,37 @@ struct machine_desc { ...@@ -54,39 +54,37 @@ struct machine_desc {
#define MACHINE_START(_type,_name) \ #define MACHINE_START(_type,_name) \
const struct machine_desc __mach_desc_##_type \ const struct machine_desc __mach_desc_##_type \
__attribute__((__section__(".arch.info"))) = { \ __attribute__((__section__(".arch.info"))) = { \
nr: MACH_TYPE_##_type, \ .nr = MACH_TYPE_##_type, \
name: _name, .name = _name,
#define MAINTAINER(n) #define MAINTAINER(n)
#define BOOT_MEM(_pram,_pio,_vio) \ #define BOOT_MEM(_pram,_pio,_vio) \
phys_ram: _pram, \ .phys_ram = _pram, \
phys_io: _pio, \ .phys_io = _pio, \
io_pg_offst: ((_vio)>>18)&0xfffc, .io_pg_offst = ((_vio)>>18)&0xfffc,
#define BOOT_PARAMS(_params) \ #define BOOT_PARAMS(_params) \
param_offset: _params, .param_offset = _params,
#define VIDEO(_start,_end) \ #define VIDEO(_start,_end) \
video_start: _start, \ .video_start = _start, \
video_end: _end, .video_end = _end,
#define DISABLE_PARPORT(_n) \ #define DISABLE_PARPORT(_n) \
reserve_lp##_n: 1, .reserve_lp##_n = 1,
#define BROKEN_HLT /* unused */
#define SOFT_REBOOT \ #define SOFT_REBOOT \
soft_reboot: 1, .soft_reboot = 1,
#define FIXUP(_func) \ #define FIXUP(_func) \
fixup: _func, .fixup = _func,
#define MAPIO(_func) \ #define MAPIO(_func) \
map_io: _func, .map_io = _func,
#define INITIRQ(_func) \ #define INITIRQ(_func) \
init_irq: _func, .init_irq = _func,
#define MACHINE_END \ #define MACHINE_END \
}; };
......
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