Skip to contentSkip to conversation

Move #ifdef CONFIG_HARD_SPI right after #include <config.h>

PATCH New Vlad Lungu 1 participant 1 message Jan 23, 2008 SPI

lore
Share & tools
lore

Vlad Lungu

author
#0 lore raw

PATCH 1/1 Move #ifdef CONFIG_HARD_SPI right after #include <config.h>

Otherwise asm/mpc8xxx_spi.h is not found for non-ppc targets

and compilation fails

---
 drivers/spi/mpc8xxx_spi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/spi/mpc8xxx_spi.c +2 -2
index a3d1c95..6bd6bde 100644
@@ -22,11 +22,11 @@
  */
 
 #include <common.h>
+#ifdef CONFIG_HARD_SPI
+
 #include <spi.h>
 #include <asm/mpc8xxx_spi.h>
 
-#ifdef CONFIG_HARD_SPI
-
 #define SPI_EV_NE	(0x80000000 >> 22)	/* Receiver Not Empty */
 #define SPI_EV_NF	(0x80000000 >> 23)	/* Transmitter Not Full */
 
Signature · 1 line
1.5.2.2