summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-14 10:15:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-24 19:40:53 +0200
commit1e926b80bb29568993813534dcaf6e9c7d020415 (patch)
treec3c5646683103b0c1ce0742dc74cf02ce0f3d4de
parentb7a3e559158af9c18a30d260f37aa0e4c6525cbc (diff)
downloadbarebox-1e926b80bb29568993813534dcaf6e9c7d020415.tar.gz
barebox-1e926b80bb29568993813534dcaf6e9c7d020415.tar.xz
put env_push_context into postcore_initcall
env_push_context only needs malloc, so initialize it earlier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> tested-by: Marc Reilly <marc@cpdesign.com.au>
-rw-r--r--common/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env.c b/common/env.c
index 47cef0548..defb26b3b 100644
--- a/common/env.c
+++ b/common/env.c
@@ -81,7 +81,7 @@ int env_push_context(void)
return 0;
}
-device_initcall(env_push_context);
+postcore_initcall(env_push_context);
/**
* FIXME