X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Fi386%2Fpci%2Fi386.c;h=10154a2cac6895d6073973f3e12ef95d18bee247;hb=6ab3d5624e172c553004ecc862bfeac16d9d68b7;hp=7852827a599b07b5f6a5f053c617a7ac70259eaa;hpb=c0897856553d45aee1780bed455b7c2e888dd64b;p=powerpc.git diff --git a/arch/i386/pci/i386.c b/arch/i386/pci/i386.c index 7852827a59..10154a2cac 100644 --- a/arch/i386/pci/i386.c +++ b/arch/i386/pci/i386.c @@ -48,10 +48,10 @@ */ void pcibios_align_resource(void *data, struct resource *res, - unsigned long size, unsigned long align) + resource_size_t size, resource_size_t align) { if (res->flags & IORESOURCE_IO) { - unsigned long start = res->start; + resource_size_t start = res->start; if (start & 0x300) { start = (start + 0x3ff) & ~0x3ff; @@ -285,8 +285,6 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, /* Leave vm_pgoff as-is, the PCI space address is the physical * address on this platform. */ - vma->vm_flags |= (VM_SHM | VM_LOCKED | VM_IO); - prot = pgprot_val(vma->vm_page_prot); if (boot_cpu_data.x86 > 3) prot |= _PAGE_PCD | _PAGE_PWT;