Skip to content

Commit

Permalink
m68k: atafb - 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 <[email protected]>
  • Loading branch information
geertu committed Jan 12, 2009
1 parent 5edc304 commit 639274d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions drivers/video/atafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3075,8 +3075,7 @@ int __init atafb_setup(char *options)

int __init atafb_init(void)
{
int pad;
int detected_mode;
int pad, detected_mode, error;
unsigned int defmode = 0;
unsigned long mem_req;

Expand Down Expand Up @@ -3116,8 +3115,12 @@ int __init atafb_init(void)
printk("atafb_init: initializing Falcon hw\n");
fbhw = &falcon_switch;
atafb_ops.fb_setcolreg = &falcon_setcolreg;
request_irq(IRQ_AUTO_4, falcon_vbl_switcher, IRQ_TYPE_PRIO,
"framebuffer/modeswitch", falcon_vbl_switcher);
error = request_irq(IRQ_AUTO_4, falcon_vbl_switcher,
IRQ_TYPE_PRIO,
"framebuffer/modeswitch",
falcon_vbl_switcher);
if (error)
return error;
defmode = DEFMODE_F30;
break;
}
Expand Down

0 comments on commit 639274d

Please sign in to comment.