mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f07234b66a
commit
c40a22e0ce
2 changed files with 42 additions and 26 deletions
|
@ -309,8 +309,8 @@ struct pci_raw_ops {
|
|||
extern struct pci_raw_ops *raw_pci_ops;
|
||||
|
||||
struct pci_bus_region {
|
||||
unsigned long start;
|
||||
unsigned long end;
|
||||
resource_size_t start;
|
||||
resource_size_t end;
|
||||
};
|
||||
|
||||
struct pci_dynids {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue