diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-05-21 12:24:59 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-06-05 07:35:47 -0600 |
commit | 0d1ab576f2e706f221b42e229eeabc80e5b51d35 (patch) | |
tree | 2c331c47ffeefc780a155d021c37b0f497889833 | |
parent | ca2f948a4b44b587db760510e324c87fda02c15e (diff) | |
download | u-boot-0d1ab576f2e706f221b42e229eeabc80e5b51d35.tar.gz u-boot-0d1ab576f2e706f221b42e229eeabc80e5b51d35.tar.bz2 u-boot-0d1ab576f2e706f221b42e229eeabc80e5b51d35.zip |
net: luton: remove address translation after ofnode_read_resource
Removed call of ofnode_translate_address() after ofnode_read_resource
in luton_switch.c:luton_probe(); it is unnecessary since
the commit feb7ac457c20 ("dm: core: Add address translation in
fdt_get_resource").
Fixes: feb7ac457c20 ("dm: core: Add address translation in fdt_get_resource")
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reported-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
-rw-r--r-- | drivers/net/mscc_eswitch/luton_switch.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c index 54afa14c9d..73c950d118 100644 --- a/drivers/net/mscc_eswitch/luton_switch.c +++ b/drivers/net/mscc_eswitch/luton_switch.c @@ -588,7 +588,6 @@ static int luton_probe(struct udevice *dev) struct luton_private *priv = dev_get_priv(dev); int i, ret; struct resource res; - fdt32_t faddr; phys_addr_t addr_base; unsigned long addr_size; ofnode eth_node, node, mdio_node; @@ -658,9 +657,7 @@ static int luton_probe(struct udevice *dev) if (ofnode_read_resource(mdio_node, 0, &res)) return -ENOMEM; - faddr = cpu_to_fdt32(res.start); - - addr_base = ofnode_translate_address(mdio_node, &faddr); + addr_base = res.start; addr_size = res.end - res.start; /* If the bus is new then create a new bus */ |