[PATCH 2/2] spi: sparc: Allow of_register_spi_devices for sparc

Andreas Larsson andreas at gaisler.com
Wed Dec 5 01:09:38 EST 2012


Signed-off-by: Andreas Larsson <andreas at gaisler.com>
---
 drivers/spi/spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index c4f7d71..d8339fe 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -812,7 +812,7 @@ err_init_queue:
 
 /*-------------------------------------------------------------------------*/
 
-#if defined(CONFIG_OF) && !defined(CONFIG_SPARC)
+#if defined(CONFIG_OF)
 /**
  * of_register_spi_devices() - Register child devices onto the SPI bus
  * @master:	Pointer to spi_master device
-- 
1.7.0.4



More information about the devicetree-discuss mailing list