Skip to content

Commit 5a23945

Browse files
committed
m68k/irq: Remove obsolete IRQ_FLG_* users
The m68k core irq code stopped honoring these flags during the irq restructuring in 2006. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent 1425df8 commit 5a23945

9 files changed

Lines changed: 22 additions & 82 deletions

File tree

‎arch/m68k/amiga/amiints.c‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,6 @@
44
* This file is subject to the terms and conditions of the GNU General Public
55
* License. See the file COPYING in the main directory of this archive
66
* for more details.
7-
*
8-
* 11/07/96: rewritten interrupt handling, irq lists are exists now only for
9-
* this sources where it makes sense (VERTB/PORTS/EXTER) and you must
10-
* be careful that dev_id for this sources is unique since this the
11-
* only possibility to distinguish between different handlers for
12-
* free_irq. irq lists also have different irq flags:
13-
* - IRQ_FLG_FAST: handler is inserted at top of list (after other
14-
* fast handlers)
15-
* - IRQ_FLG_SLOW: handler is inserted at bottom of list and before
16-
* they're executed irq level is set to the previous
17-
* one, but handlers don't need to be reentrant, if
18-
* reentrance occurred, slow handlers will be just
19-
* called again.
20-
* The whole interrupt handling for CIAs is moved to cia.c
21-
* /Roman Zippel
22-
*
23-
* 07/08/99: rewamp of the interrupt handling - we now have two types of
24-
* interrupts, normal and fast handlers, fast handlers being
25-
* marked with IRQF_DISABLED and runs with all other interrupts
26-
* disabled. Normal interrupts disable their own source but
27-
* run with all other interrupt sources enabled.
28-
* PORTS and EXTER interrupts are always shared even if the
29-
* drivers do not explicitly mark this when calling
30-
* request_irq which they really should do.
31-
* This is similar to the way interrupts are handled on all
32-
* other architectures and makes a ton of sense besides
33-
* having the advantage of making it easier to share
34-
* drivers.
35-
* /Jes
367
*/
378

389
#include <linux/init.h>

‎arch/m68k/hp300/time.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void __init hp300_sched_init(irq_handler_t vector)
7070

7171
asm volatile(" movpw %0,%1@(5)" : : "d" (INTVAL), "a" (CLOCKBASE));
7272

73-
if (request_irq(IRQ_AUTO_6, hp300_tick, IRQ_FLG_STD, "timer tick", vector))
73+
if (request_irq(IRQ_AUTO_6, hp300_tick, 0, "timer tick", vector))
7474
pr_err("Couldn't register timer interrupt\n");
7575

7676
out_8(CLOCKBASE + CLKCR2, 0x1); /* select CR1 */

‎arch/m68k/kernel/ints.c‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,6 @@
44
* This file is subject to the terms and conditions of the GNU General Public
55
* License. See the file COPYING in the main directory of this archive
66
* for more details.
7-
*
8-
* 07/03/96: Timer initialization, and thus mach_sched_init(),
9-
* removed from request_irq() and moved to init_time().
10-
* We should therefore consider renaming our add_isr() and
11-
* remove_isr() to request_irq() and free_irq()
12-
* respectively, so they are compliant with the other
13-
* architectures. /Jes
14-
* 11/07/96: Changed all add_/remove_isr() to request_/free_irq() calls.
15-
* Removed irq list support, if any machine needs an irq server
16-
* it must implement this itself (as it's already done), instead
17-
* only default handler are used with mach_default_handler.
18-
* request_irq got some flags different from other architectures:
19-
* - IRQ_FLG_REPLACE : Replace an existing handler (the default one
20-
* can be replaced without this flag)
21-
* - IRQ_FLG_LOCK : handler can't be replaced
22-
* There are other machine depending flags, see there
23-
* If you want to replace a default handler you should know what
24-
* you're doing, since it might handle different other irq sources
25-
* which must be served /Roman Zippel
267
*/
278

289
#include <linux/module.h>

‎arch/m68k/mac/iop.c‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,13 @@ void __init iop_register_interrupts(void)
305305
{
306306
if (iop_ism_present) {
307307
if (oss_present) {
308-
if (request_irq(OSS_IRQLEV_IOPISM, iop_ism_irq,
309-
IRQ_FLG_LOCK, "ISM IOP",
310-
(void *) IOP_NUM_ISM))
308+
if (request_irq(OSS_IRQLEV_IOPISM, iop_ism_irq, 0,
309+
"ISM IOP", (void *)IOP_NUM_ISM))
311310
pr_err("Couldn't register ISM IOP interrupt\n");
312311
oss_irq_enable(IRQ_MAC_ADB);
313312
} else {
314-
if (request_irq(IRQ_VIA2_0, iop_ism_irq,
315-
IRQ_FLG_LOCK|IRQ_FLG_FAST, "ISM IOP",
316-
(void *) IOP_NUM_ISM))
313+
if (request_irq(IRQ_VIA2_0, iop_ism_irq, 0, "ISM IOP",
314+
(void *)IOP_NUM_ISM))
317315
pr_err("Couldn't register ISM IOP interrupt\n");
318316
}
319317
if (!iop_alive(iop_base[IOP_NUM_ISM])) {

‎arch/m68k/mac/oss.c‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,14 @@ void __init oss_init(void)
6565

6666
void __init oss_register_interrupts(void)
6767
{
68-
if (request_irq(OSS_IRQLEV_SCSI, oss_irq, IRQ_FLG_LOCK,
69-
"scsi", (void *) oss))
68+
if (request_irq(OSS_IRQLEV_SCSI, oss_irq, 0, "scsi", (void *)oss))
7069
pr_err("Couldn't register %s interrupt\n", "scsi");
71-
if (request_irq(OSS_IRQLEV_NUBUS, oss_nubus_irq, IRQ_FLG_LOCK,
72-
"nubus", (void *) oss))
70+
if (request_irq(OSS_IRQLEV_NUBUS, oss_nubus_irq, 0, "nubus",
71+
(void *)oss))
7372
pr_err("Couldn't register %s interrupt\n", "nubus");
74-
if (request_irq(OSS_IRQLEV_SOUND, oss_irq, IRQ_FLG_LOCK,
75-
"sound", (void *) oss))
73+
if (request_irq(OSS_IRQLEV_SOUND, oss_irq, 0, "sound", (void *)oss))
7674
pr_err("Couldn't register %s interrupt\n", "sound");
77-
if (request_irq(OSS_IRQLEV_VIA1, via1_irq, IRQ_FLG_LOCK,
78-
"via1", (void *) via1))
75+
if (request_irq(OSS_IRQLEV_VIA1, via1_irq, 0, "via1", (void *)via1))
7976
pr_err("Couldn't register %s interrupt\n", "via1");
8077
}
8178

‎arch/m68k/mac/via.c‎

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void __init via_init_clock(irq_handler_t func)
281281
via1[vT1CL] = MAC_CLOCK_LOW;
282282
via1[vT1CH] = MAC_CLOCK_HIGH;
283283

284-
if (request_irq(IRQ_MAC_TIMER_1, func, IRQ_FLG_LOCK, "timer", func))
284+
if (request_irq(IRQ_MAC_TIMER_1, func, 0, "timer", func))
285285
pr_err("Couldn't register %s interrupt\n", "timer");
286286
}
287287

@@ -292,25 +292,19 @@ void __init via_init_clock(irq_handler_t func)
292292
void __init via_register_interrupts(void)
293293
{
294294
if (via_alt_mapping) {
295-
if (request_irq(IRQ_AUTO_1, via1_irq,
296-
IRQ_FLG_LOCK|IRQ_FLG_FAST, "software",
297-
(void *) via1))
295+
if (request_irq(IRQ_AUTO_1, via1_irq, 0, "software",
296+
(void *)via1))
298297
pr_err("Couldn't register %s interrupt\n", "software");
299-
if (request_irq(IRQ_AUTO_6, via1_irq,
300-
IRQ_FLG_LOCK|IRQ_FLG_FAST, "via1",
301-
(void *) via1))
298+
if (request_irq(IRQ_AUTO_6, via1_irq, 0, "via1", (void *)via1))
302299
pr_err("Couldn't register %s interrupt\n", "via1");
303300
} else {
304-
if (request_irq(IRQ_AUTO_1, via1_irq,
305-
IRQ_FLG_LOCK|IRQ_FLG_FAST, "via1",
306-
(void *) via1))
301+
if (request_irq(IRQ_AUTO_1, via1_irq, 0, "via1", (void *)via1))
307302
pr_err("Couldn't register %s interrupt\n", "via1");
308303
}
309-
if (request_irq(IRQ_AUTO_2, via2_irq, IRQ_FLG_LOCK|IRQ_FLG_FAST,
310-
"via2", (void *) via2))
304+
if (request_irq(IRQ_AUTO_2, via2_irq, 0, "via2", (void *)via2))
311305
pr_err("Couldn't register %s interrupt\n", "via2");
312-
if (request_irq(IRQ_MAC_NUBUS, via_nubus_irq,
313-
IRQ_FLG_LOCK|IRQ_FLG_FAST, "nubus", (void *) via2))
306+
if (request_irq(IRQ_MAC_NUBUS, via_nubus_irq, 0, "nubus",
307+
(void *)via2))
314308
pr_err("Couldn't register %s interrupt\n", "nubus");
315309
}
316310

‎arch/m68k/mvme147/config.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ static irqreturn_t mvme147_timer_int (int irq, void *dev_id)
114114
void mvme147_sched_init (irq_handler_t timer_routine)
115115
{
116116
tick_handler = timer_routine;
117-
if (request_irq(PCC_IRQ_TIMER1, mvme147_timer_int, IRQ_FLG_REPLACE,
118-
"timer 1", NULL))
117+
if (request_irq(PCC_IRQ_TIMER1, mvme147_timer_int, 0, "timer 1", NULL))
119118
pr_err("Couldn't register timer interrupt\n");
120119

121120
/* Init the clock with a value */

‎drivers/macintosh/via-macii.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int macii_init(void)
159159
err = macii_init_via();
160160
if (err) goto out;
161161

162-
err = request_irq(IRQ_MAC_ADB, macii_interrupt, IRQ_FLG_LOCK, "ADB",
162+
err = request_irq(IRQ_MAC_ADB, macii_interrupt, 0, "ADB",
163163
macii_interrupt);
164164
if (err) goto out;
165165

‎drivers/macintosh/via-maciisi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ maciisi_init(void)
122122
return err;
123123
}
124124

125-
if (request_irq(IRQ_MAC_ADB, maciisi_interrupt, IRQ_FLG_LOCK | IRQ_FLG_FAST,
126-
"ADB", maciisi_interrupt)) {
125+
if (request_irq(IRQ_MAC_ADB, maciisi_interrupt, 0, "ADB",
126+
maciisi_interrupt)) {
127127
printk(KERN_ERR "maciisi_init: can't get irq %d\n", IRQ_MAC_ADB);
128128
return -EAGAIN;
129129
}

0 commit comments

Comments
 (0)