diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-12-30 08:01:32 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-01-12 14:56:36 -0500 |
commit | 5b8b4c3d1b0ed4ccac3b1985acd0a973dfa00801 (patch) | |
tree | 86cb7eb9a8360df38349317fc28ac26d48fa309d /arch | |
parent | 844306538920b3aaf6806e238f0c0309a1e2bb5f (diff) |
m68k: atari core - Kill warn_unused_result warnings
warning: ignoring return value of 'request_irq', declared with attribute
warn_unused_result
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/atari/atakeyb.c | 9 | ||||
-rw-r--r-- | arch/m68k/atari/stdma.c | 5 | ||||
-rw-r--r-- | arch/m68k/atari/time.c | 5 |
3 files changed, 13 insertions, 6 deletions
diff --git a/arch/m68k/atari/atakeyb.c b/arch/m68k/atari/atakeyb.c index f3c343be51ee..a5f33c059979 100644 --- a/arch/m68k/atari/atakeyb.c +++ b/arch/m68k/atari/atakeyb.c | |||
@@ -566,14 +566,19 @@ static int atari_keyb_done = 0; | |||
566 | 566 | ||
567 | int atari_keyb_init(void) | 567 | int atari_keyb_init(void) |
568 | { | 568 | { |
569 | int error; | ||
570 | |||
569 | if (atari_keyb_done) | 571 | if (atari_keyb_done) |
570 | return 0; | 572 | return 0; |
571 | 573 | ||
572 | kb_state.state = KEYBOARD; | 574 | kb_state.state = KEYBOARD; |
573 | kb_state.len = 0; | 575 | kb_state.len = 0; |
574 | 576 | ||
575 | request_irq(IRQ_MFP_ACIA, atari_keyboard_interrupt, IRQ_TYPE_SLOW, | 577 | error = request_irq(IRQ_MFP_ACIA, atari_keyboard_interrupt, |
576 | "keyboard/mouse/MIDI", atari_keyboard_interrupt); | 578 | IRQ_TYPE_SLOW, "keyboard/mouse/MIDI", |
579 | atari_keyboard_interrupt); | ||
580 | if (error) | ||
581 | return error; | ||
577 | 582 | ||
578 | atari_turnoff_irq(IRQ_MFP_ACIA); | 583 | atari_turnoff_irq(IRQ_MFP_ACIA); |
579 | do { | 584 | do { |
diff --git a/arch/m68k/atari/stdma.c b/arch/m68k/atari/stdma.c index d1bd029a34ac..604329fafbb8 100644 --- a/arch/m68k/atari/stdma.c +++ b/arch/m68k/atari/stdma.c | |||
@@ -179,8 +179,9 @@ EXPORT_SYMBOL(stdma_islocked); | |||
179 | void __init stdma_init(void) | 179 | void __init stdma_init(void) |
180 | { | 180 | { |
181 | stdma_isr = NULL; | 181 | stdma_isr = NULL; |
182 | request_irq(IRQ_MFP_FDC, stdma_int, IRQ_TYPE_SLOW | IRQF_SHARED, | 182 | if (request_irq(IRQ_MFP_FDC, stdma_int, IRQ_TYPE_SLOW | IRQF_SHARED, |
183 | "ST-DMA: floppy/ACSI/IDE/Falcon-SCSI", stdma_int); | 183 | "ST-DMA: floppy/ACSI/IDE/Falcon-SCSI", stdma_int)) |
184 | pr_err("Couldn't register ST-DMA interrupt\n"); | ||
184 | } | 185 | } |
185 | 186 | ||
186 | 187 | ||
diff --git a/arch/m68k/atari/time.c b/arch/m68k/atari/time.c index 1edde27fa32d..d076ff8d1b39 100644 --- a/arch/m68k/atari/time.c +++ b/arch/m68k/atari/time.c | |||
@@ -31,8 +31,9 @@ atari_sched_init(irq_handler_t timer_routine) | |||
31 | /* start timer C, div = 1:100 */ | 31 | /* start timer C, div = 1:100 */ |
32 | mfp.tim_ct_cd = (mfp.tim_ct_cd & 15) | 0x60; | 32 | mfp.tim_ct_cd = (mfp.tim_ct_cd & 15) | 0x60; |
33 | /* install interrupt service routine for MFP Timer C */ | 33 | /* install interrupt service routine for MFP Timer C */ |
34 | request_irq(IRQ_MFP_TIMC, timer_routine, IRQ_TYPE_SLOW, | 34 | if (request_irq(IRQ_MFP_TIMC, timer_routine, IRQ_TYPE_SLOW, |
35 | "timer", timer_routine); | 35 | "timer", timer_routine)) |
36 | pr_err("Couldn't register timer interrupt\n"); | ||
36 | } | 37 | } |
37 | 38 | ||
38 | /* ++andreas: gettimeoffset fixed to check for pending interrupt */ | 39 | /* ++andreas: gettimeoffset fixed to check for pending interrupt */ |