summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-16 11:16:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-06 10:24:46 +0100
commitd7c1612d650e87dbdebf8957bc01bd1db52f0d5b (patch)
tree3a97b1663cf1a2d72142ee1f30f8d3dfb3266a77 /net
parent91b3761ec87a0194b7cb7a0b5ed983504c876195 (diff)
downloadbarebox-d7c1612d650e87dbdebf8957bc01bd1db52f0d5b.tar.gz
barebox-d7c1612d650e87dbdebf8957bc01bd1db52f0d5b.tar.xz
of: Add a context pointer to fixup functions
If drivers want to fixup their specific instance they need some context to know which instance they have to fixup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/eth.c b/net/eth.c
index e5d6a35822..38674533d2 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -274,7 +274,7 @@ static int eth_set_ethaddr(struct device_d *dev, struct param_d *param, const ch
}
#ifdef CONFIG_OFTREE
-static int eth_of_fixup(struct device_node *root)
+static int eth_of_fixup(struct device_node *root, void *unused)
{
struct eth_device *edev;
struct device_node *node;
@@ -316,7 +316,7 @@ static int eth_of_fixup(struct device_node *root)
static int eth_register_of_fixup(void)
{
- return of_register_fixup(eth_of_fixup);
+ return of_register_fixup(eth_of_fixup, NULL);
}
late_initcall(eth_register_of_fixup);
#endif