spi/sparc: Allow of_register_spi_devices for sparc
authorAndreas Larsson <andreas@gaisler.com>
Tue, 4 Dec 2012 14:09:38 +0000 (15:09 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 10 Dec 2012 22:31:37 +0000 (22:31 +0000)
The spi support code works on SPARC too. No reason to exclude it from
the party.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c

index 689eaf7485af425061426f2b7c9e03594a813621..b8335a1f82efdc1cf7fd506764c20e3d5f8da62a 100644 (file)
@@ -805,7 +805,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