of: net: Use correct devicetree in eth_of_fixup
eth_of_fixup() is passed a devicetree, so use this one instead of the internal devicetree. This makes sure it also works when the tree to fixup is not the internal one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
85fce508e7
commit
e72c88e71b
|
@ -296,7 +296,7 @@ static int eth_of_fixup(struct device_node *root)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = of_find_node_by_path(edev->nodepath);
|
node = of_find_node_by_path_from(root, edev->nodepath);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_dbg(&edev->dev, "%s: fixup node %s not found\n",
|
dev_dbg(&edev->dev, "%s: fixup node %s not found\n",
|
||||||
__func__, edev->nodepath);
|
__func__, edev->nodepath);
|
||||||
|
|
Loading…
Reference in New Issue