summaryrefslogtreecommitdiffstats
path: root/arch/ppc
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 /arch/ppc
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 'arch/ppc')
-rw-r--r--arch/ppc/mach-mpc5xxx/cpu.c4
-rw-r--r--arch/ppc/mach-mpc85xx/fdt.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/mach-mpc5xxx/cpu.c b/arch/ppc/mach-mpc5xxx/cpu.c
index 0ece4a9ed9..c860e709f2 100644
--- a/arch/ppc/mach-mpc5xxx/cpu.c
+++ b/arch/ppc/mach-mpc5xxx/cpu.c
@@ -77,7 +77,7 @@ void __noreturn reset_cpu (unsigned long addr)
/* ------------------------------------------------------------------------- */
#ifdef CONFIG_OFTREE
-static int of_mpc5200_fixup(struct device_node *root)
+static int of_mpc5200_fixup(struct device_node *root, void *unused)
{
struct device_node *node;
@@ -103,7 +103,7 @@ static int of_mpc5200_fixup(struct device_node *root)
static int of_register_mpc5200_fixup(void)
{
- return of_register_fixup(of_mpc5200_fixup);
+ return of_register_fixup(of_mpc5200_fixup, NULL);
}
late_initcall(of_register_mpc5200_fixup);
#endif
diff --git a/arch/ppc/mach-mpc85xx/fdt.c b/arch/ppc/mach-mpc85xx/fdt.c
index 65de6f1104..fd919a56e7 100644
--- a/arch/ppc/mach-mpc85xx/fdt.c
+++ b/arch/ppc/mach-mpc85xx/fdt.c
@@ -89,7 +89,7 @@ error:
return -ENODEV;
}
-static int fdt_cpu_setup(struct device_node *blob)
+static int fdt_cpu_setup(struct device_node *blob, void *unused)
{
struct device_node *node;
struct sys_info sysinfo;
@@ -139,6 +139,6 @@ static int fdt_cpu_setup(struct device_node *blob)
static int of_register_mpc85xx_fixup(void)
{
- return of_register_fixup(fdt_cpu_setup);
+ return of_register_fixup(fdt_cpu_setup, NULL);
}
late_initcall(of_register_mpc85xx_fixup);