Skip to contentSkip to conversation

PowerPC: Add 64-bit resources support to pci_iomap

PATCH In review Valentine Barshak 2 participants 2 messages Sep 5, 2007 – Sep 6, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PowerPC: Add 64-bit resources support to pci_iomap

The patch adds support for the 64-bit resources to the PCI iomap code.

---

arch/powerpc/kernel/iomap.c +2 -2
@@ -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)
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Valentine Barshak

The patch adds support for the 64-bit resources to the PCI iomap code.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson