diff options
Diffstat (limited to 'arch/m68k/amiga')
-rw-r--r-- | arch/m68k/amiga/amiints.c | 9 | ||||
-rw-r--r-- | arch/m68k/amiga/cia.c | 18 |
2 files changed, 12 insertions, 15 deletions
diff --git a/arch/m68k/amiga/amiints.c b/arch/m68k/amiga/amiints.c index c5b5212cc3f9..320c5d048dc7 100644 --- a/arch/m68k/amiga/amiints.c +++ b/arch/m68k/amiga/amiints.c | |||
@@ -52,11 +52,10 @@ static irqreturn_t ami_int3(int irq, void *dev_id); | |||
52 | static irqreturn_t ami_int4(int irq, void *dev_id); | 52 | static irqreturn_t ami_int4(int irq, void *dev_id); |
53 | static irqreturn_t ami_int5(int irq, void *dev_id); | 53 | static irqreturn_t ami_int5(int irq, void *dev_id); |
54 | 54 | ||
55 | static struct irq_controller amiga_irq_controller = { | 55 | static struct irq_chip amiga_irq_chip = { |
56 | .name = "amiga", | 56 | .name = "amiga", |
57 | .lock = __SPIN_LOCK_UNLOCKED(amiga_irq_controller.lock), | 57 | .irq_enable = amiga_enable_irq, |
58 | .enable = amiga_enable_irq, | 58 | .irq_disable = amiga_disable_irq, |
59 | .disable = amiga_disable_irq, | ||
60 | }; | 59 | }; |
61 | 60 | ||
62 | /* | 61 | /* |
@@ -81,7 +80,7 @@ void __init amiga_init_IRQ(void) | |||
81 | if (request_irq(IRQ_AUTO_5, ami_int5, 0, "int5", NULL)) | 80 | if (request_irq(IRQ_AUTO_5, ami_int5, 0, "int5", NULL)) |
82 | pr_err("Couldn't register int%d\n", 5); | 81 | pr_err("Couldn't register int%d\n", 5); |
83 | 82 | ||
84 | m68k_setup_irq_controller(&amiga_irq_controller, IRQ_USER, AMI_STD_IRQS); | 83 | m68k_setup_irq_chip(&amiga_irq_chip, IRQ_USER, AMI_STD_IRQS); |
85 | 84 | ||
86 | /* turn off PCMCIA interrupts */ | 85 | /* turn off PCMCIA interrupts */ |
87 | if (AMIGAHW_PRESENT(PCMCIA)) | 86 | if (AMIGAHW_PRESENT(PCMCIA)) |
diff --git a/arch/m68k/amiga/cia.c b/arch/m68k/amiga/cia.c index ecd0f7ca6f0e..637ef53112b6 100644 --- a/arch/m68k/amiga/cia.c +++ b/arch/m68k/amiga/cia.c | |||
@@ -121,11 +121,10 @@ static void cia_disable_irq(unsigned int irq) | |||
121 | cia_able_irq(&ciaa_base, 1 << (irq - IRQ_AMIGA_CIAA)); | 121 | cia_able_irq(&ciaa_base, 1 << (irq - IRQ_AMIGA_CIAA)); |
122 | } | 122 | } |
123 | 123 | ||
124 | static struct irq_controller cia_irq_controller = { | 124 | static struct irq_chip cia_irq_chip = { |
125 | .name = "cia", | 125 | .name = "cia", |
126 | .lock = __SPIN_LOCK_UNLOCKED(cia_irq_controller.lock), | 126 | .irq_enable = cia_enable_irq, |
127 | .enable = cia_enable_irq, | 127 | .irq_disable = cia_disable_irq, |
128 | .disable = cia_disable_irq, | ||
129 | }; | 128 | }; |
130 | 129 | ||
131 | /* | 130 | /* |
@@ -158,23 +157,22 @@ static void auto_disable_irq(unsigned int irq) | |||
158 | } | 157 | } |
159 | } | 158 | } |
160 | 159 | ||
161 | static struct irq_controller auto_irq_controller = { | 160 | static struct irq_chip auto_irq_chip = { |
162 | .name = "auto", | 161 | .name = "auto", |
163 | .lock = __SPIN_LOCK_UNLOCKED(auto_irq_controller.lock), | 162 | .irq_enable = auto_enable_irq, |
164 | .enable = auto_enable_irq, | 163 | .irq_disable = auto_disable_irq, |
165 | .disable = auto_disable_irq, | ||
166 | }; | 164 | }; |
167 | 165 | ||
168 | void __init cia_init_IRQ(struct ciabase *base) | 166 | void __init cia_init_IRQ(struct ciabase *base) |
169 | { | 167 | { |
170 | m68k_setup_irq_controller(&cia_irq_controller, base->cia_irq, CIA_IRQS); | 168 | m68k_setup_irq_chip(&cia_irq_chip, base->cia_irq, CIA_IRQS); |
171 | 169 | ||
172 | /* clear any pending interrupt and turn off all interrupts */ | 170 | /* clear any pending interrupt and turn off all interrupts */ |
173 | cia_set_irq(base, CIA_ICR_ALL); | 171 | cia_set_irq(base, CIA_ICR_ALL); |
174 | cia_able_irq(base, CIA_ICR_ALL); | 172 | cia_able_irq(base, CIA_ICR_ALL); |
175 | 173 | ||
176 | /* override auto int and install CIA handler */ | 174 | /* override auto int and install CIA handler */ |
177 | m68k_setup_irq_controller(&auto_irq_controller, base->handler_irq, 1); | 175 | m68k_setup_irq_chip(&auto_irq_chip, base->handler_irq, 1); |
178 | m68k_irq_startup(base->handler_irq); | 176 | m68k_irq_startup(base->handler_irq); |
179 | if (request_irq(base->handler_irq, cia_handler, IRQF_SHARED, | 177 | if (request_irq(base->handler_irq, cia_handler, IRQF_SHARED, |
180 | base->name, base)) | 178 | base->name, base)) |