[PATCH] PowerPC: Add 64-bit resources support to pci_iomap
Valentine Barshak
vbarshak at ru.mvista.com
Thu Sep 6 03:30:16 EST 2007
The patch adds support for the 64-bit resources to the PCI
iomap code.
Signed-off-by: Valentine Barshak <vbarshak at ru.mvista.com>
---
--- linux-2.6.orig/arch/powerpc/kernel/iomap.c 2007-09-04 21:15:13.000000000 +0400
+++ linux-2.6.bld/arch/powerpc/kernel/iomap.c 2007-09-05 21:06:39.000000000 +0400
@@ -119,8 +119,8 @@
void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max)
{
- unsigned long start = pci_resource_start(dev, bar);
- unsigned long len = pci_resource_len(dev, bar);
+ resource_size_t start = pci_resource_start(dev, bar);
+ resource_size_t len = pci_resource_len(dev, bar);
unsigned long flags = pci_resource_flags(dev, bar);
if (!len)
More information about the Linuxppc-dev
mailing list