Subject: [PATCH -next] mfd: ab8500 depends on SPI_MASTER

From: Randy Dunlap <[email-masked]>
Date: Tue, 14 Sep 2010 15:23:51 -0700

From: Randy Dunlap <[email-masked]>

Fix build errors in ab8500-spi.c.  It uses spi_* functions, so it
should depend on SPI_MASTER.

ab8500-spi.c:(.text+0x4900a): undefined reference to `spi_sync'
ab8500-spi.c:(.text+0x490b0): undefined reference to `spi_sync'
ab8500-spi.c:(.init.text+0x30c5): undefined reference to `spi_register_driver'

Signed-off-by: Randy Dunlap <[email-masked]>
Cc: Samuel Ortiz <[email-masked]>
---
 drivers/mfd/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20100914.orig/drivers/mfd/Kconfig
+++ linux-next-20100914/drivers/mfd/Kconfig
@@ -475,7 +475,7 @@ config EZX_PCAP
 
 config AB8500_CORE
 	bool "ST-Ericsson AB8500 Mixed Signal Power Management chip"
-	depends on GENERIC_HARDIRQS && ABX500_CORE
+	depends on GENERIC_HARDIRQS && ABX500_CORE && SPI_MASTER
 	select MFD_CORE
 	help
 	  Select this option to enable access to AB8500 power management