All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Move conditional compilation of MPC8XXX SPI driver to Makefile
@ 2008-05-26  6:31 Ben Warren
  2008-05-26  7:54 ` Wolfgang Denk
  0 siblings, 1 reply; 12+ messages in thread
From: Ben Warren @ 2008-05-26  6:31 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
---
 drivers/spi/Makefile      |    2 +-
 drivers/spi/mpc8xxx_spi.c |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
index bc8a104..eab9d93 100644
--- a/drivers/spi/Makefile
+++ b/drivers/spi/Makefile
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 LIB	:= $(obj)libspi.a
 
-COBJS-y += mpc8xxx_spi.o
+COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o
 COBJS-$(CONFIG_MXC_SPI) += mxc_spi.o
 
 COBJS	:= $(COBJS-y)
diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
index 2fe838c..5e2f67a 100644
--- a/drivers/spi/mpc8xxx_spi.c
+++ b/drivers/spi/mpc8xxx_spi.c
@@ -22,7 +22,6 @@
  */
 
 #include <common.h>
-#if defined(CONFIG_MPC8XXX_SPI) && defined(CONFIG_HARD_SPI)
 
 #include <spi.h>
 #include <asm/mpc8xxx_spi.h>
@@ -140,4 +139,3 @@ int spi_xfer(spi_chipsel_type chipsel, int bitlen, uchar *dout, uchar *din)
 
 	return 0;
 }
-#endif				/* CONFIG_HARD_SPI */
-- 
1.5.4.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-05-27 14:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-26  6:31 [U-Boot-Users] [PATCH] Move conditional compilation of MPC8XXX SPI driver to Makefile Ben Warren
2008-05-26  7:54 ` Wolfgang Denk
2008-05-26 15:06   ` Ben Warren
2008-05-26 15:26     ` Wolfgang Denk
2008-05-26 16:40       ` Ben Warren
2008-05-27  7:34     ` Haavard Skinnemoen
2008-05-27  7:54       ` Wolfgang Denk
2008-05-27  8:04         ` Haavard Skinnemoen
2008-05-27  8:13           ` Wolfgang Denk
2008-05-27  8:32             ` Haavard Skinnemoen
2008-05-27  9:13               ` Wolfgang Denk
2008-05-27 14:28                 ` Ben Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.