X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fvideo%2Fcyber2000fb.c;h=7a6eeda5ae9aabf48bc4032093be88fc08c8eac5;hb=2c4f365ad2361c93c097e958b2b0a7a112750228;hp=a9300f930ef2a3022390758efd4271606fc39f6b;hpb=34b8c399dc04c8e51f014b73458e654570698597;p=linux-2.6 diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c index a9300f930e..7a6eeda5ae 100644 --- a/drivers/video/cyber2000fb.c +++ b/drivers/video/cyber2000fb.c @@ -36,13 +36,11 @@ * (which, incidentally, is about the same saving as a 2.5in hard disk * entering standby mode.) */ -#include #include #include #include #include #include -#include #include #include #include @@ -50,7 +48,6 @@ #include #include -#include #include #include #include @@ -1542,16 +1539,21 @@ static int cyberpro_pci_enable_mmio(struct cfb_info *cfb) /* * Allow the CyberPro to accept PCI burst accesses */ - val = cyber2000_grphr(EXT_BUS_CTL, cfb); - if (!(val & EXT_BUS_CTL_PCIBURST_WRITE)) { - printk(KERN_INFO "%s: enabling PCI bursts\n", cfb->fb.fix.id); + if (cfb->id == ID_CYBERPRO_2010) { + printk(KERN_INFO "%s: NOT enabling PCI bursts\n", cfb->fb.fix.id); + } else { + val = cyber2000_grphr(EXT_BUS_CTL, cfb); + if (!(val & EXT_BUS_CTL_PCIBURST_WRITE)) { + printk(KERN_INFO "%s: enabling PCI bursts\n", + cfb->fb.fix.id); - val |= EXT_BUS_CTL_PCIBURST_WRITE; + val |= EXT_BUS_CTL_PCIBURST_WRITE; - if (cfb->id == ID_CYBERPRO_5000) - val |= EXT_BUS_CTL_PCIBURST_READ; + if (cfb->id == ID_CYBERPRO_5000) + val |= EXT_BUS_CTL_PCIBURST_READ; - cyber2000_grphw(EXT_BUS_CTL, val, cfb); + cyber2000_grphw(EXT_BUS_CTL, val, cfb); + } } return 0;