diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-12-30 08:10:11 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-01-12 14:56:40 -0500 |
commit | 639274d8106e25c2f91bf92270f46aaa3d104040 (patch) | |
tree | e70ab758534d9783d4faec5a8ed3a9d2c4b73217 /drivers/video | |
parent | 5edc304f49f3b1a246a3cc4ecc248e8fe7174840 (diff) |
m68k: atafb - 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 'drivers/video')
-rw-r--r-- | drivers/video/atafb.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/video/atafb.c b/drivers/video/atafb.c index 477ce55bbae9..8058572a7428 100644 --- a/drivers/video/atafb.c +++ b/drivers/video/atafb.c | |||
@@ -3075,8 +3075,7 @@ int __init atafb_setup(char *options) | |||
3075 | 3075 | ||
3076 | int __init atafb_init(void) | 3076 | int __init atafb_init(void) |
3077 | { | 3077 | { |
3078 | int pad; | 3078 | int pad, detected_mode, error; |
3079 | int detected_mode; | ||
3080 | unsigned int defmode = 0; | 3079 | unsigned int defmode = 0; |
3081 | unsigned long mem_req; | 3080 | unsigned long mem_req; |
3082 | 3081 | ||
@@ -3116,8 +3115,12 @@ int __init atafb_init(void) | |||
3116 | printk("atafb_init: initializing Falcon hw\n"); | 3115 | printk("atafb_init: initializing Falcon hw\n"); |
3117 | fbhw = &falcon_switch; | 3116 | fbhw = &falcon_switch; |
3118 | atafb_ops.fb_setcolreg = &falcon_setcolreg; | 3117 | atafb_ops.fb_setcolreg = &falcon_setcolreg; |
3119 | request_irq(IRQ_AUTO_4, falcon_vbl_switcher, IRQ_TYPE_PRIO, | 3118 | error = request_irq(IRQ_AUTO_4, falcon_vbl_switcher, |
3120 | "framebuffer/modeswitch", falcon_vbl_switcher); | 3119 | IRQ_TYPE_PRIO, |
3120 | "framebuffer/modeswitch", | ||
3121 | falcon_vbl_switcher); | ||
3122 | if (error) | ||
3123 | return error; | ||
3121 | defmode = DEFMODE_F30; | 3124 | defmode = DEFMODE_F30; |
3122 | break; | 3125 | break; |
3123 | } | 3126 | } |