aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2008-02-06 04:39:13 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:15 -0500
commit2c6cc35c3033ef1ef79565164963687d686f9f05 (patch)
tree2fc47d4f449b0c6d340fb796708b68f768a59e01
parentcbfb3e09c5f5cc21994fd06abb5b5839589d5b9a (diff)
fbcon: fix sparse warning about shadowing 'p' symbol
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/video/console/fbcon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 2cedb4991d49..23108affd12e 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -2795,7 +2795,7 @@ static int fbcon_scrolldelta(struct vc_data *vc, int lines)
2795{ 2795{
2796 struct fb_info *info = registered_fb[con2fb_map[fg_console]]; 2796 struct fb_info *info = registered_fb[con2fb_map[fg_console]];
2797 struct fbcon_ops *ops = info->fbcon_par; 2797 struct fbcon_ops *ops = info->fbcon_par;
2798 struct display *p = &fb_display[fg_console]; 2798 struct display *disp = &fb_display[fg_console];
2799 int offset, limit, scrollback_old; 2799 int offset, limit, scrollback_old;
2800 2800
2801 if (softback_top) { 2801 if (softback_top) {
@@ -2833,7 +2833,7 @@ static int fbcon_scrolldelta(struct vc_data *vc, int lines)
2833 logo_shown = FBCON_LOGO_CANSHOW; 2833 logo_shown = FBCON_LOGO_CANSHOW;
2834 } 2834 }
2835 fbcon_cursor(vc, CM_ERASE | CM_SOFTBACK); 2835 fbcon_cursor(vc, CM_ERASE | CM_SOFTBACK);
2836 fbcon_redraw_softback(vc, p, lines); 2836 fbcon_redraw_softback(vc, disp, lines);
2837 fbcon_cursor(vc, CM_DRAW | CM_SOFTBACK); 2837 fbcon_cursor(vc, CM_DRAW | CM_SOFTBACK);
2838 return 0; 2838 return 0;
2839 } 2839 }
@@ -2855,9 +2855,9 @@ static int fbcon_scrolldelta(struct vc_data *vc, int lines)
2855 2855
2856 fbcon_cursor(vc, CM_ERASE); 2856 fbcon_cursor(vc, CM_ERASE);
2857 2857
2858 offset = p->yscroll - scrollback_current; 2858 offset = disp->yscroll - scrollback_current;
2859 limit = p->vrows; 2859 limit = disp->vrows;
2860 switch (p->scrollmode) { 2860 switch (disp->scrollmode) {
2861 case SCROLL_WRAP_MOVE: 2861 case SCROLL_WRAP_MOVE:
2862 info->var.vmode |= FB_VMODE_YWRAP; 2862 info->var.vmode |= FB_VMODE_YWRAP;
2863 break; 2863 break;