public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Move #ifdef CONFIG_HARD_SPI right after #include <config.h>
@ 2008-01-23 14:40 Vlad Lungu
  0 siblings, 0 replies; only message in thread
From: Vlad Lungu @ 2008-01-23 14:40 UTC (permalink / raw)
  To: u-boot


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

and compilation fails

Signed-off-by: Vlad Lungu <vlad@comsys.ro>
---
 drivers/spi/mpc8xxx_spi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
index a3d1c95..6bd6bde 100644
--- a/drivers/spi/mpc8xxx_spi.c
+++ b/drivers/spi/mpc8xxx_spi.c
@@ -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 */
 
-- 
1.5.2.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-23 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 14:40 [U-Boot-Users] [PATCH] Move #ifdef CONFIG_HARD_SPI right after #include <config.h> Vlad Lungu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox