summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorReinhard Meyer <u-boot@emk-elektronik.de>2011-08-02 15:09:55 +0000
committerU-Boot <uboot@aari01-12.(none)>2011-08-03 13:00:56 +0200
commit0c427914767e590116c8ac5d90594c4413ba7982 (patch)
tree45440b2e6de05cd0f02f97a15eaf7ac8cb9eebfb /drivers
parent97a470da0388c8ee0372f4228d6ebdb9926dd328 (diff)
downloadblackbird-obmc-uboot-0c427914767e590116c8ac5d90594c4413ba7982.tar.gz
blackbird-obmc-uboot-0c427914767e590116c8ac5d90594c4413ba7982.zip
AT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/atmel_dataflash_spi.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/spi/atmel_dataflash_spi.c b/drivers/spi/atmel_dataflash_spi.c
index e7d3ff0ac5..363e07a53f 100644
--- a/drivers/spi/atmel_dataflash_spi.c
+++ b/drivers/spi/atmel_dataflash_spi.c
@@ -19,10 +19,20 @@
*
*/
+/*
+ * This driver desperately needs rework:
+ *
+ * - use structure SoC access
+ * - get rid of including asm/arch/at91_spi.h
+ * - remove asm/arch/at91_spi.h
+ * - get rid of all CONFIG_ATMEL_LEGACY defines and uses
+ *
+ * 02-Aug-2010 Reinhard Meyer <uboot@emk-elektronik.de>
+ */
+
#include <common.h>
-#ifndef CONFIG_AT91_LEGACY
-# define CONFIG_AT91_LEGACY
-# warning Please update to use C structure SoC access !
+#ifndef CONFIG_ATMEL_LEGACY
+# define CONFIG_ATMEL_LEGACY
#endif
#include <spi.h>
#include <malloc.h>
OpenPOWER on IntegriCloud