diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-27 07:40:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-27 07:40:31 +0200 |
commit | e72c88e71b64b2ef7061656be144738f7bf8ccb9 (patch) | |
tree | 93f476cd68807d1a59ffb4dcca7190fcd476e69e /net | |
parent | 85fce508e7e11f3f7721003bd16c0ea3add9581c (diff) | |
download | barebox-e72c88e71b64b2ef7061656be144738f7bf8ccb9.tar.gz barebox-e72c88e71b64b2ef7061656be144738f7bf8ccb9.tar.xz |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -296,7 +296,7 @@ static int eth_of_fixup(struct device_node *root) continue; } - node = of_find_node_by_path(edev->nodepath); + node = of_find_node_by_path_from(root, edev->nodepath); if (!node) { dev_dbg(&edev->dev, "%s: fixup node %s not found\n", __func__, edev->nodepath); |