Commit 0d1ab576 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Simon Glass
Browse files

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 feb7ac45 ("dm: core: Add address translation in

Fixes: feb7ac45

 ("dm: core: Add address translation in fdt_get_resource")
Reviewed-by: Ramon Fried's avatarRamon Fried <>
Reported-by: default avatarHoratiu Vultur <>
Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <>
parent ca2f948a
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment