diff options
author | Becky Bruce <bgill@freescale.com> | 2008-05-07 13:24:57 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-10 00:59:57 +0200 |
commit | 36f32675f40292002ee1fed252c180a43022d2d4 (patch) | |
tree | 96199a6636af49402ba7ea98dc29a13c0ed9a627 /drivers/pci | |
parent | 91a616741fc128cdb88f39bddcd4d72fe17466d0 (diff) |
Update pci code to use phys_addr_t
Physical addrs need to be represented by phys_addr_t, not
unsigned long. Otherwise, systems that use CONFIG_PHYS_64BIT
are going to fail mightily.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 7944b6684a..f01a75e7f8 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -221,7 +221,7 @@ pci_dev_t pci_find_device(unsigned int vendor, unsigned int device, int index) */ unsigned long pci_hose_phys_to_bus (struct pci_controller *hose, - unsigned long phys_addr, + phys_addr_t phys_addr, unsigned long flags) { struct pci_region *res; @@ -253,9 +253,9 @@ Done: return 0; } -unsigned long pci_hose_bus_to_phys(struct pci_controller* hose, - unsigned long bus_addr, - unsigned long flags) +phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose, + unsigned long bus_addr, + unsigned long flags) { struct pci_region *res; int i; |