[U-Boot,v3,04/22] Support setenv_ulong() and setenv_addr() for powerpc

Message ID 1351524245-19584-5-git-send-email-sjg@chromium.org
State Accepted, archived
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass Oct. 29, 2012, 3:23 p.m.
This includes were outside an #ifdef CONFIG_PPC, but there is not reason
to exclude powerpc from using them.

Move the declaration outside the #ifdef.

Signed-off-by: Simon Glass <sjg@chromium.org>
Changes in v3:
- Add new patch to enable setenv_ulong/addr() for powerpc

 include/common.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/include/common.h b/include/common.h
index b23e90b..12b3e03 100644
--- a/include/common.h
+++ b/include/common.h
@@ -345,9 +345,9 @@  int	saveenv	     (void);
 int inline setenv    (const char *, const char *);
 int	setenv	     (const char *, const char *);
+#endif /* CONFIG_PPC */
 int setenv_ulong(const char *varname, ulong value);
 int setenv_addr(const char *varname, const void *addr);
-#endif /* CONFIG_PPC */
 #ifdef CONFIG_ARM
 # include <asm/mach-types.h>
 # include <asm/setup.h>