Skip to content

Commit

Permalink
m68k: ser_a2232 - Kill warn_unused_result warnings
Browse files Browse the repository at this point in the history
warning: ignoring return value of 'request_irq', declared with attribute
warn_unused_result

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
  • Loading branch information
geertu committed Jan 12, 2009
1 parent c36a4e4 commit 67c53c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions drivers/char/ser_a2232.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ static int __init a2232board_init(void)
u_char *from;
volatile u_char *to;
volatile struct a2232memory *mem;
int error, i;

#ifdef CONFIG_SMP
return -ENODEV; /* This driver is not SMP aware. Is there an SMP ZorroII-bus-machine? */
Expand Down Expand Up @@ -797,8 +798,15 @@ static int __init a2232board_init(void)
*/
if (a2232_init_drivers()) return -ENODEV; // maybe we should use a different -Exxx?

request_irq(IRQ_AMIGA_VERTB, a2232_vbl_inter, 0, "A2232 serial VBL", a2232_driver_ID);
return 0;
error = request_irq(IRQ_AMIGA_VERTB, a2232_vbl_inter, 0,
"A2232 serial VBL", a2232_driver_ID);
if (error) {
for (i = 0; i < nr_a2232; i++)
zorro_release_device(zd_a2232[i]);
tty_unregister_driver(a2232_driver);
put_tty_driver(a2232_driver);
}
return error;
}

static void __exit a2232board_exit(void)
Expand Down

0 comments on commit 67c53c3

Please sign in to comment.