Commit e24b0a3f authored by Peter Huewe's avatar Peter Huewe Committed by Greg Kroah-Hartman

staging/xgifb: Remove unsupported mode LCD_320x480

This patch removes the probed mode LCD_320x480 which isn't supported
anyway since this mode falls through to the default (=invalid) mode in
the
XGIfb_validate_mode function (see line 529 ff. for details. the
commented out code for this mode is also removed).

By removing this assignment, we can use the LCD_TYPEs from the sis
driver without modifications.
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3b09e4b
...@@ -526,12 +526,6 @@ static int XGIfb_validate_mode(struct xgifb_video_info *xgifb_info, int myindex) ...@@ -526,12 +526,6 @@ static int XGIfb_validate_mode(struct xgifb_video_info *xgifb_info, int myindex)
xres = 1600; xres = 1600;
yres = 1200; yres = 1200;
break; break;
/* case LCD_320x480: */ /* TW: FSTN */
/*
xres = 320;
yres = 480;
break;
*/
default: default:
xres = 0; xres = 0;
yres = 0; yres = 0;
...@@ -2117,10 +2111,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev, ...@@ -2117,10 +2111,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
reg = xgifb_reg_get(XGICR, IND_XGI_LCD_PANEL); reg = xgifb_reg_get(XGICR, IND_XGI_LCD_PANEL);
reg &= 0x0f; reg &= 0x0f;
hw_info->ulCRT2LCDType = XGI310paneltype[reg]; hw_info->ulCRT2LCDType = XGI310paneltype[reg];
} else {
/* TW: FSTN/DSTN */
hw_info->ulCRT2LCDType = LCD_320x480;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment