summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2008-01-26 23:41:19 -0500
committerKim Phillips <kim.phillips@freescale.com>2008-01-29 11:53:00 -0600
commit8931ab176025b03cfc320b3fd1eca432a88ed560 (patch)
treeaa73d55510e488ed909a10f883c88d3a5d5835bd /drivers
parent98b742489c09780be6a832eeaa4e5eff824792bb (diff)
downloadu-boot-imx-8931ab176025b03cfc320b3fd1eca432a88ed560.zip
u-boot-imx-8931ab176025b03cfc320b3fd1eca432a88ed560.tar.gz
u-boot-imx-8931ab176025b03cfc320b3fd1eca432a88ed560.tar.bz2
Fix conditional compilation of mpx8xxx_spi driver
This driver should only compile if CONFIG_MPC8XXX_SPI is set Signed-off-by: Ben Warren <biggerbadderben@gmail.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/mpc8xxx_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
index a3d1c95..2fe838c 100644
--- a/drivers/spi/mpc8xxx_spi.c
+++ b/drivers/spi/mpc8xxx_spi.c
@@ -22,11 +22,11 @@
*/
#include <common.h>
+#if defined(CONFIG_MPC8XXX_SPI) && defined(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 */