From 0c427914767e590116c8ac5d90594c4413ba7982 Mon Sep 17 00:00:00 2001 From: Reinhard Meyer Date: Tue, 2 Aug 2011 15:09:55 +0000 Subject: [PATCH] AT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings Signed-off-by: Reinhard Meyer --- drivers/spi/atmel_dataflash_spi.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/spi/atmel_dataflash_spi.c b/drivers/spi/atmel_dataflash_spi.c index e7d3ff0..363e07a 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 + */ + #include -#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 #include -- 2.7.4