aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/of/address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 78a7dcbec7d8..6906a3f61bd8 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -765,7 +765,7 @@ unsigned long __weak pci_address_to_pio(phys_addr_t address)
765 spin_lock(&io_range_lock); 765 spin_lock(&io_range_lock);
766 list_for_each_entry(res, &io_range_list, list) { 766 list_for_each_entry(res, &io_range_list, list) {
767 if (address >= res->start && address < res->start + res->size) { 767 if (address >= res->start && address < res->start + res->size) {
768 addr = res->start - address + offset; 768 addr = address - res->start + offset;
769 break; 769 break;
770 } 770 }
771 offset += res->size; 771 offset += res->size;