diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 11:44:38 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-29 08:48:03 -0400 |
commit | a2178334e9e7bb0fc11c9706114b43dbdd612ce4 (patch) | |
tree | bf7a7510f5db22b79001a181cf6e7efeeed68934 /arch/ia64/sn | |
parent | 41ef0203214644ad003e8dac0147a3e5b6381034 (diff) |
ia64: Use accessor functions all over the place
Use the proper accessor functions instead of open coded irq_desc access.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/ia64/sn')
-rw-r--r-- | arch/ia64/sn/kernel/irq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/ia64/sn/kernel/irq.c b/arch/ia64/sn/kernel/irq.c index 79ef3d05d2e4..b2aa79391724 100644 --- a/arch/ia64/sn/kernel/irq.c +++ b/arch/ia64/sn/kernel/irq.c | |||
@@ -273,15 +273,13 @@ unsigned int sn_local_vector_to_irq(u8 vector) | |||
273 | void sn_irq_init(void) | 273 | void sn_irq_init(void) |
274 | { | 274 | { |
275 | int i; | 275 | int i; |
276 | struct irq_desc *base_desc = irq_desc; | ||
277 | 276 | ||
278 | ia64_first_device_vector = IA64_SN2_FIRST_DEVICE_VECTOR; | 277 | ia64_first_device_vector = IA64_SN2_FIRST_DEVICE_VECTOR; |
279 | ia64_last_device_vector = IA64_SN2_LAST_DEVICE_VECTOR; | 278 | ia64_last_device_vector = IA64_SN2_LAST_DEVICE_VECTOR; |
280 | 279 | ||
281 | for (i = 0; i < NR_IRQS; i++) { | 280 | for (i = 0; i < NR_IRQS; i++) { |
282 | if (base_desc[i].chip == &no_irq_chip) { | 281 | if (irq_get_chip(i) == &no_irq_chip) |
283 | base_desc[i].chip = &irq_type_sn; | 282 | irq_set_chip(i, &irq_type_sn); |
284 | } | ||
285 | } | 283 | } |
286 | } | 284 | } |
287 | 285 | ||