]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: xgifb: delete bIntegratedMMEnabled
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 8 Mar 2011 20:16:11 +0000 (22:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 10 Mar 2011 00:02:52 +0000 (16:02 -0800)
bIntegratedMMEnabled is always true, so the field and checks can be
eliminated.

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

index fa30a2614b071d5d3e5a0a42390a05acc1c1a1d9..ce569af3781bbb21d6286a221adadd4612b5df78 100644 (file)
@@ -2273,20 +2273,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
        printk("XGIfb:chipid = %x\n", xgi_video_info.chip);
        XGIhw_ext.jChipType = xgi_video_info.chip;
 
-       switch (xgi_video_info.chip) {
-       case XG40:
-       case XG41:
-       case XG42:
-       case XG45:
-       case XG20:
-       case XG21:
-       case XG27:
-               XGIhw_ext.bIntegratedMMEnabled = 1;
-               break;
-       default:
-               break;
-       }
-
        if ((xgi_video_info.chip == XG21) || (XGIfb_userom)) {
                XGIhw_ext.pjVirtualRomBase = xgifb_copy_rom(pdev);
                if (XGIhw_ext.pjVirtualRomBase)
index e33259a5e860a0abbfb62f49faefeefe2ce93e35..a16827e3e8694c330416033cbd7b8cbc2ee63613 100644 (file)
@@ -152,9 +152,6 @@ unsigned char XGIInitNew(struct xgi_hw_device_info *HwDeviceExtension)
        pVBInfo->ISXPDOS = 0;
        printk("3");
 
-       if (!HwDeviceExtension->bIntegratedMMEnabled)
-               return 0; /* alan */
-
        printk("4");
 
        /* VBIOSVersion[4] = 0x0; */
index c4624ccb02b78d935cb65c37a2f32aecdb69399e..4b87951f43224d55d9b39c4ef4216d9f11467526 100644 (file)
@@ -80,8 +80,6 @@ struct xgi_hw_device_info
 
     unsigned long  ulCRT2LCDType;        /* defined in the data structure type */
 
-    unsigned char bIntegratedMMEnabled;/* supporting integration MM enable */
-
        unsigned char(*pQueryVGAConfigSpace)(struct xgi_hw_device_info *,
                                            unsigned long, unsigned long,
                                            unsigned long *);