diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2011-12-06 00:10:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-08 12:26:03 -0800 |
commit | c4ffaa44226860050f39d1c88c78854d5885b4fa (patch) | |
tree | 0cb2f48108fa387534e893295aed73799a9555a1 /drivers | |
parent | 97f4532d6da3b87238dc5a06a226bf37aee5bf72 (diff) | |
download | op-kernel-dev-c4ffaa44226860050f39d1c88c78854d5885b4fa.zip op-kernel-dev-c4ffaa44226860050f39d1c88c78854d5885b4fa.tar.gz |
staging: xgifb: XGINew_GetXG21Sense(): eliminate video BIOS access
Remove video BIOS access from the routine, use the flag instead which
is initialized according to the BIOS data.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/xgifb/vb_init.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c index 7e89100..f3a8bed 100644 --- a/drivers/staging/xgifb/vb_init.c +++ b/drivers/staging/xgifb/vb_init.c @@ -1313,14 +1313,9 @@ static void XGINew_GetXG21Sense(struct xgi_hw_device_info *HwDeviceExtension, struct vb_device_info *pVBInfo) { unsigned char Temp; - volatile unsigned char *pVideoMemory = - (unsigned char *) pVBInfo->ROMAddr; - - pVBInfo->IF_DEF_LVDS = 0; #if 1 - if ((pVideoMemory[0x65] & 0x01)) { /* For XG21 LVDS */ - pVBInfo->IF_DEF_LVDS = 1; + if (pVBInfo->IF_DEF_LVDS) { /* For XG21 LVDS */ xgifb_reg_or(pVBInfo->P3d4, 0x32, LCDSense); /* LVDS on chip */ xgifb_reg_and_or(pVBInfo->P3d4, 0x38, ~0xE0, 0xC0); |