From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Lungu Date: Wed, 23 Jan 2008 16:40:20 +0200 Subject: [U-Boot-Users] [PATCH] Move #ifdef CONFIG_HARD_SPI right after #include Message-ID: <479751D4.5040700@comsys.ro> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Otherwise asm/mpc8xxx_spi.h is not found for non-ppc targets and compilation fails Signed-off-by: Vlad Lungu --- 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 +#ifdef CONFIG_HARD_SPI + #include #include -#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