]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: xgifb: eliminate #ifdef Tap4
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 31 Aug 2011 18:46:03 +0000 (21:46 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 18:42:09 +0000 (11:42 -0700)
Eliminate #define Tap4 and related checks.

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

index aaa5fa0d27b71cb3972d441c2bf2bb5a9c689a01..040c9bf6d45c0635c6b55b9db89f79c9f26d333c 100644 (file)
@@ -5688,10 +5688,6 @@ static void XGI_SetTap4Regs(struct vb_device_info *pVBInfo)
        if (!(pVBInfo->VBType & VB_XGI301C))
                return;
 
-#ifndef Tap4
-       xgifb_reg_and(pVBInfo->Part2Port, 0x4E, 0xEB); /* Disable Tap4 */
-#else            /* Tap4 Setting */
-
        Tap4TimingPtr = XGI_GetTap4Ptr(0, pVBInfo); /* Set Horizontal Scaling */
        for (i = 0x80, j = 0; i <= 0xBF; i++, j++)
                xgifb_reg_set(pVBInfo->Part2Port, i, Tap4TimingPtr->Reg[j]);
@@ -5713,7 +5709,6 @@ static void XGI_SetTap4Regs(struct vb_device_info *pVBInfo)
        else
                /* Enable H.Scaling */
                xgifb_reg_and_or(pVBInfo->Part2Port, 0x4E, ~0x14, 0x10);
-#endif
 }
 
 static void XGI_SetGroup3(unsigned short ModeNo, unsigned short ModeIdIndex,
index e5e19ec950ef88ded836d321360d657e1b79e796..770f859a6a9902e6effe6b42074b8f4f21d01f2e 100644 (file)
@@ -1,5 +1,3 @@
-#define  Tap4
-
 /* yilin modify for xgi20 */
 static struct XGI_MCLKDataStruct XGI340New_MCLKData[] = {
        {0x16, 0x01, 0x01, 166},