summaryrefslogtreecommitdiffstats
path: root/common/memory.c
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 /common/memory.c
parent91b3761ec87a0194b7cb7a0b5ed983504c876195 (diff)
downloadbarebox-d7c1612d650e87dbdebf8957bc01bd1db52f0d5b.tar.gz
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 'common/memory.c')
-rw-r--r--common/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/memory.c b/common/memory.c
index 7ec211b..c82bbaa 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -163,7 +163,7 @@ int release_sdram_region(struct resource *res)
#ifdef CONFIG_OFTREE
-static int of_memory_fixup(struct device_node *node)
+static int of_memory_fixup(struct device_node *node, void *unused)
{
struct memory_bank *bank;
int err;
@@ -200,7 +200,7 @@ static int of_memory_fixup(struct device_node *node)
static int of_register_memory_fixup(void)
{
- return of_register_fixup(of_memory_fixup);
+ return of_register_fixup(of_memory_fixup, NULL);
}
late_initcall(of_register_memory_fixup);
#endif