]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/sstfb.c
modules: fix module waiting for dependent modules' init
[linux-2.6-omap-h63xx.git] / drivers / video / sstfb.c
index 62fa5500361d2a1b8a1ce7418c1b81f9d1044d1b..97784f9c184de95980a35c952ac81a363d68b115 100644 (file)
@@ -88,7 +88,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <asm/io.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
 #include <video/sstfb.h>
 
 
@@ -1348,7 +1348,7 @@ static int __devinit sstfb_probe(struct pci_dev *pdev,
        f_ddprintk("found device : %s\n", spec->name);
 
        par->dev = pdev;
-       pci_read_config_byte(pdev, PCI_REVISION_ID, &par->revision);
+       par->revision = pdev->revision;
 
        fix->mmio_start = pci_resource_start(pdev,0);
        fix->mmio_len   = 0x400000;