diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-09-08 07:47:33 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-09-21 15:04:32 +0200 |
commit | 154bf12f78c012895e7b42f844b7b92c4f015509 (patch) | |
tree | 85c3dfca8995bbadf2902f07fc9433ce74520879 /drivers/net/ftmac100.c | |
parent | 65f62b1ca12050c4e3b3e5ed641447918f4c4b7b (diff) |
net: pch_gbe: Use dm_pci_map_bar to discover MMIO base
Reading the PCI BAR & converting the result to a physical address is not
safe across all architectures. For example on MIPS the virtual:physical
mapping is not 1:1, so we cannot directly make use of the physical
address.
Use the more generic BAR-mapping function dm_pci_map_bar to discover the
MMIO base address, which should work across architectures.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/ftmac100.c')
0 files changed, 0 insertions, 0 deletions