]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/bmw/bmw.c
Merge branch 'master' of git://git.denx.de/u-boot-i2c
[karo-tx-uboot.git] / board / bmw / bmw.c
index 870011e6fc1d0827bc2f5335f67ec81609d529fe..5ba6c09d1ca00121140990b1ced9bb299e6e458a 100644 (file)
@@ -21,7 +21,6 @@
  * MA 02111-1307 USA
  */
 
-#include <common.h>
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
@@ -117,6 +116,7 @@ sys_led_msg(char* msg)
     LED_REG(3) = msg[0];
 }
 
+#ifdef CONFIG_CMD_DOC
 /*
  * Map onboard TSOP-16MB DOC FLASH chip.
  */
@@ -124,6 +124,7 @@ void doc_init (void)
 {
     doc_probe(DOC_BASE_ADDR);
 }
+#endif
 
 #define NV_ADDR        ((volatile unsigned char *) CONFIG_ENV_ADDR)