diff options
Diffstat (limited to 'drivers/video/riva/fbdev.c')
-rw-r--r-- | drivers/video/riva/fbdev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index 9316905e027a..f2e9b742c92f 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -894,7 +894,8 @@ out: | |||
894 | return rc; | 894 | return rc; |
895 | } | 895 | } |
896 | 896 | ||
897 | static void riva_update_var(struct fb_var_screeninfo *var, struct fb_videomode *modedb) | 897 | static void riva_update_var(struct fb_var_screeninfo *var, |
898 | const struct fb_videomode *modedb) | ||
898 | { | 899 | { |
899 | NVTRACE_ENTER(); | 900 | NVTRACE_ENTER(); |
900 | var->xres = var->xres_virtual = modedb->xres; | 901 | var->xres = var->xres_virtual = modedb->xres; |
@@ -1152,7 +1153,7 @@ static int rivafb_release(struct fb_info *info, int user) | |||
1152 | 1153 | ||
1153 | static int rivafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) | 1154 | static int rivafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) |
1154 | { | 1155 | { |
1155 | struct fb_videomode *mode; | 1156 | const struct fb_videomode *mode; |
1156 | struct riva_par *par = info->par; | 1157 | struct riva_par *par = info->par; |
1157 | int nom, den; /* translating from pixels->bytes */ | 1158 | int nom, den; /* translating from pixels->bytes */ |
1158 | int mode_valid = 0; | 1159 | int mode_valid = 0; |