aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via
diff options
context:
space:
mode:
authorNikanth Karthikesan <nikanth@google.com>2011-06-10 04:57:04 -0400
committerJiri Kosina <jkosina@suse.cz>2011-06-27 10:37:31 -0400
commit0acd33d08988cef238619f99ba056be16aab443e (patch)
tree691100981e57e837802ae26df9a701142f6ef996 /drivers/video/via
parentd5b55a8f79f77158334e2eff82ffb0eea74618f2 (diff)
viafbdev: fix compilation warning for unused variable
viafbdev: Fix compilation warning for unused variable for #ifdef MODULE Fix compilation warning when #ifdef MODULE drivers/video/via/viafbdev.c: In function ‘viafb_init’: drivers/video/via/viafbdev.c:2019: warning: unused variable ‘r’ Signed-off-by: Nikanth Karthikesan <nikanth@google.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/video/via')
-rw-r--r--drivers/video/via/viafbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index cf43c80d27f6..53aa4430d86e 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -2016,7 +2016,7 @@ static int __init viafb_setup(void)
2016int __init viafb_init(void) 2016int __init viafb_init(void)
2017{ 2017{
2018 u32 dummy_x, dummy_y; 2018 u32 dummy_x, dummy_y;
2019 int r; 2019 int r = 0;
2020 2020
2021 if (machine_is_olpc()) 2021 if (machine_is_olpc())
2022 /* Apply XO-1.5-specific configuration. */ 2022 /* Apply XO-1.5-specific configuration. */
@@ -2039,7 +2039,7 @@ int __init viafb_init(void)
2039 printk(KERN_INFO 2039 printk(KERN_INFO
2040 "VIA Graphics Integration Chipset framebuffer %d.%d initializing\n", 2040 "VIA Graphics Integration Chipset framebuffer %d.%d initializing\n",
2041 VERSION_MAJOR, VERSION_MINOR); 2041 VERSION_MAJOR, VERSION_MINOR);
2042 return 0; 2042 return r;
2043} 2043}
2044 2044
2045void __exit viafb_exit(void) 2045void __exit viafb_exit(void)