summaryrefslogtreecommitdiffstats
path: root/arch/mips/pci/pci-rc32434.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/pci/pci-rc32434.c')
-rw-r--r--arch/mips/pci/pci-rc32434.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/pci-rc32434.c b/arch/mips/pci/pci-rc32434.c
index f31218e17d3c..764362ce5e40 100644
--- a/arch/mips/pci/pci-rc32434.c
+++ b/arch/mips/pci/pci-rc32434.c
@@ -215,7 +215,7 @@ static int __init rc32434_pci_init(void)
rc32434_pcibridge_init();
io_map_base = ioremap(rc32434_res_pci_io1.start,
- rc32434_res_pci_io1.end - rc32434_res_pci_io1.start + 1);
+ resource_size(&rcrc32434_res_pci_io1));
if (!io_map_base)
return -ENOMEM;
OpenPOWER on IntegriCloud