staging: xgifb: delete redundant IF_DEF_LVDS check
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 27 Mar 2013 21:53:06 +0000 (23:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 23:10:14 +0000 (16:10 -0700)
IF_DEF_LVDS can be set only on XG21.

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

index df127e4069520c7410e2525268aa6ef9d5a0a291..f3d22c6e6b0cf8a8a1361dbe4b7c302b4adaae49 100644 (file)
@@ -1369,17 +1369,14 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
 
        if (HwDeviceExtension->jChipType < XG20) {
                if (XGI_BridgeIsOn(pVBInfo) == 1) {
-                       if (pVBInfo->IF_DEF_LVDS == 0) {
-                               xgifb_reg_set(pVBInfo->Part2Port, 0x00, 0x1C);
-                               xgifb_reg_set(pVBInfo->Part4Port,
-                                             0x0D, XGI330_CRT2Data_4_D);
-                               xgifb_reg_set(pVBInfo->Part4Port,
-                                             0x0E, XGI330_CRT2Data_4_E);
-                               xgifb_reg_set(pVBInfo->Part4Port,
-                                             0x10, XGI330_CRT2Data_4_10);
-                               xgifb_reg_set(pVBInfo->Part4Port, 0x0F, 0x3F);
-                       }
-
+                       xgifb_reg_set(pVBInfo->Part2Port, 0x00, 0x1C);
+                       xgifb_reg_set(pVBInfo->Part4Port,
+                                     0x0D, XGI330_CRT2Data_4_D);
+                       xgifb_reg_set(pVBInfo->Part4Port,
+                                     0x0E, XGI330_CRT2Data_4_E);
+                       xgifb_reg_set(pVBInfo->Part4Port,
+                                     0x10, XGI330_CRT2Data_4_10);
+                       xgifb_reg_set(pVBInfo->Part4Port, 0x0F, 0x3F);
                        XGI_LockCRT2(HwDeviceExtension, pVBInfo);
                }
        } /* != XG20 */