aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-12-10 01:32:15 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 18:04:25 -0500
commitc40a22e0ce5eb400f27449e59e43d021bee58b8d (patch)
tree9335519358ff657a6a80baefd759337e324dc26d /include/linux/pci.h
parentf07234b66af1d1a204b9ddabdbdb312e8f1fb35e (diff)
PCI: Fix bus resource assignment on 32 bits with 64b resources
The current pci_assign_unassigned_resources() code doesn't work properly on 32 bits platforms with 64 bits resources. The main reason is the use of unsigned long in various places instead of resource_size_t. This is a pre-requisite for making powerpc use the generic code instead of its own half-useful implementation. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 87aab07e239a..4b4d711a5da8 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -309,8 +309,8 @@ struct pci_raw_ops {
309extern struct pci_raw_ops *raw_pci_ops; 309extern struct pci_raw_ops *raw_pci_ops;
310 310
311struct pci_bus_region { 311struct pci_bus_region {
312 unsigned long start; 312 resource_size_t start;
313 unsigned long end; 313 resource_size_t end;
314}; 314};
315 315
316struct pci_dynids { 316struct pci_dynids {