diff options
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/hw_irq.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-sh/hw_irq.h b/include/asm-sh/hw_irq.h index 0e6a60304974..0c016e949931 100644 --- a/include/asm-sh/hw_irq.h +++ b/include/asm-sh/hw_irq.h | |||
@@ -42,10 +42,10 @@ struct intc_prio { | |||
42 | 42 | ||
43 | struct intc_group { | 43 | struct intc_group { |
44 | intc_enum enum_id; | 44 | intc_enum enum_id; |
45 | intc_enum *enum_ids; | 45 | intc_enum enum_ids[32]; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | #define INTC_GROUP(enum_id, ids...) { enum_id, (intc_enum []) { ids, 0 } } | 48 | #define INTC_GROUP(enum_id, ids...) { enum_id, { ids } } |
49 | 49 | ||
50 | struct intc_mask_reg { | 50 | struct intc_mask_reg { |
51 | unsigned long set_reg, clr_reg, reg_width; | 51 | unsigned long set_reg, clr_reg, reg_width; |
@@ -81,7 +81,7 @@ struct intc_desc { | |||
81 | #define _INTC_ARRAY(a) a, sizeof(a)/sizeof(*a) | 81 | #define _INTC_ARRAY(a) a, sizeof(a)/sizeof(*a) |
82 | #define DECLARE_INTC_DESC(symbol, chipname, vectors, groups, \ | 82 | #define DECLARE_INTC_DESC(symbol, chipname, vectors, groups, \ |
83 | priorities, mask_regs, prio_regs, sense_regs) \ | 83 | priorities, mask_regs, prio_regs, sense_regs) \ |
84 | struct intc_desc symbol = { \ | 84 | struct intc_desc symbol __initdata = { \ |
85 | _INTC_ARRAY(vectors), _INTC_ARRAY(groups), \ | 85 | _INTC_ARRAY(vectors), _INTC_ARRAY(groups), \ |
86 | _INTC_ARRAY(priorities), \ | 86 | _INTC_ARRAY(priorities), \ |
87 | _INTC_ARRAY(mask_regs), _INTC_ARRAY(prio_regs), \ | 87 | _INTC_ARRAY(mask_regs), _INTC_ARRAY(prio_regs), \ |