]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: xgifb: delete bSkipSense
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 8 Mar 2011 20:16:10 +0000 (22:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 10 Mar 2011 00:02:52 +0000 (16:02 -0800)
bSkipSense is always false, thus redundant.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/vb_init.c
drivers/staging/xgifb/vgatypes.h

index 9a5aa6c9f9291451d07607d92321170248666034..e33259a5e860a0abbfb62f49faefeefe2ce93e35 100644 (file)
@@ -388,34 +388,32 @@ unsigned char XGIInitNew(struct xgi_hw_device_info *HwDeviceExtension)
                XGINew_SetReg1(pVBInfo->P3d4, 0x83, 0x00);
        printk("181");
 
-       if (HwDeviceExtension->bSkipSense == 0) {
-               printk("182");
+       printk("182");
 
-               XGI_SenseCRT1(pVBInfo);
+       XGI_SenseCRT1(pVBInfo);
 
-               printk("183");
-               /* XGINew_DetectMonitor(HwDeviceExtension); */
-               pVBInfo->IF_DEF_CH7007 = 0;
-               if ((HwDeviceExtension->jChipType == XG21) && (pVBInfo->IF_DEF_CH7007)) {
-                       printk("184");
-                       XGI_GetSenseStatus(HwDeviceExtension, pVBInfo); /* sense CRT2 */
-                       printk("185");
+       printk("183");
+       /* XGINew_DetectMonitor(HwDeviceExtension); */
+       pVBInfo->IF_DEF_CH7007 = 0;
+       if ((HwDeviceExtension->jChipType == XG21) && (pVBInfo->IF_DEF_CH7007)) {
+               printk("184");
+               XGI_GetSenseStatus(HwDeviceExtension, pVBInfo); /* sense CRT2 */
+               printk("185");
 
-               }
-               if (HwDeviceExtension->jChipType == XG21) {
-                       printk("186");
+       }
+       if (HwDeviceExtension->jChipType == XG21) {
+               printk("186");
 
-                       XGINew_SetRegANDOR(pVBInfo->P3d4, 0x32, ~Monitor1Sense, Monitor1Sense); /* Z9 default has CRT */
-                       temp = GetXG21FPBits(pVBInfo);
-                       XGINew_SetRegANDOR(pVBInfo->P3d4, 0x37, ~0x01, temp);
-                       printk("187");
+               XGINew_SetRegANDOR(pVBInfo->P3d4, 0x32, ~Monitor1Sense, Monitor1Sense); /* Z9 default has CRT */
+               temp = GetXG21FPBits(pVBInfo);
+               XGINew_SetRegANDOR(pVBInfo->P3d4, 0x37, ~0x01, temp);
+               printk("187");
 
-               }
-               if (HwDeviceExtension->jChipType == XG27) {
-                       XGINew_SetRegANDOR(pVBInfo->P3d4, 0x32, ~Monitor1Sense, Monitor1Sense); /* Z9 default has CRT */
-                       temp = GetXG27FPBits(pVBInfo);
-                       XGINew_SetRegANDOR(pVBInfo->P3d4, 0x37, ~0x03, temp);
-               }
+       }
+       if (HwDeviceExtension->jChipType == XG27) {
+               XGINew_SetRegANDOR(pVBInfo->P3d4, 0x32, ~Monitor1Sense, Monitor1Sense); /* Z9 default has CRT */
+               temp = GetXG27FPBits(pVBInfo);
+               XGINew_SetRegANDOR(pVBInfo->P3d4, 0x37, ~0x03, temp);
        }
        printk("19");
 
index 13c02be381307e4517b8670180365a6b29401744..c4624ccb02b78d935cb65c37a2f32aecdb69399e 100644 (file)
@@ -82,8 +82,6 @@ struct xgi_hw_device_info
 
     unsigned char bIntegratedMMEnabled;/* supporting integration MM enable */
 
-    unsigned char bSkipSense;
-
        unsigned char(*pQueryVGAConfigSpace)(struct xgi_hw_device_info *,
                                            unsigned long, unsigned long,
                                            unsigned long *);