summaryrefslogtreecommitdiff
path: root/common/fdt_support.c
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2008-06-20 22:24:05 +0200
committerDetlev Zundel <dzu@denx.de>2008-06-20 22:24:05 +0200
commit40777812316fc252c941665c0f60c148fd79d50f (patch)
treee831361dafd7c65034007665b09e450ca8ecf541 /common/fdt_support.c
parent914f58c5766860373a7d232e961cee5a4b54a55b (diff)
downloadu-boot-imx-40777812316fc252c941665c0f60c148fd79d50f.zip
u-boot-imx-40777812316fc252c941665c0f60c148fd79d50f.tar.gz
u-boot-imx-40777812316fc252c941665c0f60c148fd79d50f.tar.bz2
fdt: Fix typo in variable name.
Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r--common/fdt_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index e58b294..3828228 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -63,7 +63,7 @@ int fdt_find_and_setprop(void *fdt, const char *node, const char *prop,
}
#ifdef CONFIG_OF_STDOUT_VIA_ALIAS
-static int fdt_fixup_stdout(void *fdt, int choosenoff)
+static int fdt_fixup_stdout(void *fdt, int chosenoff)
{
int err = 0;
#ifdef CONFIG_CONS_INDEX
@@ -82,7 +82,7 @@ static int fdt_fixup_stdout(void *fdt, int choosenoff)
err = -FDT_ERR_NOSPACE;
if (p) {
memcpy(p, path, len);
- err = fdt_setprop(fdt, choosenoff,
+ err = fdt_setprop(fdt, chosenoff,
"linux,stdout-path", p, len);
free(p);
}