diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-02-24 04:19:01 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-02-24 04:19:01 +0100 |
commit | 9f786d033d025ab7d2c4d1b959aa81d935eb9e19 (patch) | |
tree | 5a92b3c43935efd5044972fb45eaa2c7ca1c2fcf /arch/arm/mach-mv78xx0 | |
parent | alpha/PCI: get rid of device resource fixups (diff) | |
download | linux-9f786d033d025ab7d2c4d1b959aa81d935eb9e19.tar.xz linux-9f786d033d025ab7d2c4d1b959aa81d935eb9e19.zip |
arm/PCI: get rid of device resource fixups
Tell the PCI core about host bridge address translation so it can take
care of bus-to-resource conversion for us.
CC: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/arm/mach-mv78xx0')
-rw-r--r-- | arch/arm/mach-mv78xx0/pcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c index 8459f6d7d8ca..df3e38055a24 100644 --- a/arch/arm/mach-mv78xx0/pcie.c +++ b/arch/arm/mach-mv78xx0/pcie.c @@ -155,8 +155,8 @@ static int __init mv78xx0_pcie_setup(int nr, struct pci_sys_data *sys) orion_pcie_set_local_bus_nr(pp->base, sys->busnr); orion_pcie_setup(pp->base); - pci_add_resource(&sys->resources, &pp->res[0]); - pci_add_resource(&sys->resources, &pp->res[1]); + pci_add_resource_offset(&sys->resources, &pp->res[0], sys->io_offset); + pci_add_resource_offset(&sys->resources, &pp->res[1], sys->mem_offset); return 1; } |