diff options
Diffstat (limited to 'arch/m68k/atari/atakeyb.c')
-rw-r--r-- | arch/m68k/atari/atakeyb.c | 9 |
1 files changed, 7 insertions, 2 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 { |