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

login
register
mail settings
Submitter Andreas Larsson
Date Dec. 4, 2012, 2:09 p.m.
Message ID <1354630178-25387-3-git-send-email-andreas@gaisler.com>
Download mbox | patch
Permalink /patch/203653/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Andreas Larsson - Dec. 4, 2012, 2:09 p.m.
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
---
 drivers/spi/spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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