diff --git a/drivers/staging/xgifb/XGI_main.h b/drivers/staging/xgifb/XGI_main.h index 1d0949c98c3a844cb7e7a2f1f7e2f071d8d0b886..78f4c934b24f9cfdc7e10cb4a8a86535e4628b92 100644 --- a/drivers/staging/xgifb/XGI_main.h +++ b/drivers/staging/xgifb/XGI_main.h @@ -565,6 +565,5 @@ static const struct _XGI_TV_filter { }; static int filter = -1; -static unsigned char filter_tb; #endif diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index ba7f09630d210c86a0a067f1c513dd209709c98a..bbbcdb7e50e34d832dadd5967a738b3e5255d52b 100644 --- a/drivers/staging/xgifb/XGI_main_26.c +++ b/drivers/staging/xgifb/XGI_main_26.c @@ -946,6 +946,8 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info) reg = xgifb_reg_get(XGIPART4, 0x01); if (reg < 0xB0) { /* Set filter for XGI301 */ + int filter_tb; + switch (xgifb_info->video_width) { case 320: filter_tb = (xgifb_info->TV_type == @@ -964,6 +966,7 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info) TVMODE_NTSC) ? 7 : 15; break; default: + filter_tb = 0; filter = -1; break; }