diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-16 11:16:24 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-06 10:24:46 +0100 |
commit | d7c1612d650e87dbdebf8957bc01bd1db52f0d5b (patch) | |
tree | 3a97b1663cf1a2d72142ee1f30f8d3dfb3266a77 /net/eth.c | |
parent | 91b3761ec87a0194b7cb7a0b5ed983504c876195 (diff) | |
download | barebox-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/eth.c')
-rw-r--r-- | net/eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |