]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_immap.c
[BUILD] conditionally compile common/cmd_*.c in common/Makefile
[u-boot] / common / cmd_immap.c
index ae95758247d5e15cd26da5aca3b36ea45cdba7f8..d758269777324da5bceb0da1d54bd751898beb17 100644 (file)
@@ -28,8 +28,7 @@
 #include <common.h>
 #include <command.h>
 
-#if defined(CONFIG_CMD_IMMAP) && \
-    (defined(CONFIG_8xx) || defined(CONFIG_8260))
+#if defined(CONFIG_8xx) || defined(CONFIG_8260)
 
 #if defined(CONFIG_8xx)
 #include <asm/8xx_immap.h>
@@ -41,9 +40,7 @@
 #include <asm/iopin_8260.h>
 #endif
 
-#if defined(CONFIG_8xx) || defined(CONFIG_8260)
 DECLARE_GLOBAL_DATA_PTR;
-#endif
 
 static void
 unimplemented ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])