Skip to content

Commit 9efbc3f

Browse files
committed
MIPS: alchemy: Use proper irq accessors
This really starts to be a sysiphean task. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 5b7cd6f commit 9efbc3f

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • arch/mips/alchemy/devboards/db1200

‎arch/mips/alchemy/devboards/db1200/setup.c‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,12 @@ static int __init db1200_arch_init(void)
7070
* issues they must not be automatically enabled when initially
7171
* requested.
7272
*/
73-
irq_to_desc(DB1200_SD0_INSERT_INT)->status |= IRQ_NOAUTOEN;
74-
irq_to_desc(DB1200_SD0_EJECT_INT)->status |= IRQ_NOAUTOEN;
75-
irq_to_desc(DB1200_PC0_INSERT_INT)->status |= IRQ_NOAUTOEN;
76-
irq_to_desc(DB1200_PC0_EJECT_INT)->status |= IRQ_NOAUTOEN;
77-
irq_to_desc(DB1200_PC1_INSERT_INT)->status |= IRQ_NOAUTOEN;
78-
irq_to_desc(DB1200_PC1_EJECT_INT)->status |= IRQ_NOAUTOEN;
79-
73+
irq_set_status_flags(DB1200_SD0_INSERT_INT, IRQ_NOAUTOEN);
74+
irq_set_status_flags(DB1200_SD0_EJECT_INT, IRQ_NOAUTOEN);
75+
irq_set_status_flags(DB1200_PC0_INSERT_INT, IRQ_NOAUTOEN);
76+
irq_set_status_flags(DB1200_PC0_EJECT_INT, IRQ_NOAUTOEN);
77+
irq_set_status_flags(DB1200_PC1_INSERT_INT, IRQ_NOAUTOEN);
78+
irq_set_status_flags(DB1200_PC1_EJECT_INT, IRQ_NOAUTOEN);
8079
return 0;
8180
}
8281
arch_initcall(db1200_arch_init);

0 commit comments

Comments
 (0)