linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: sirf: add reset controller dependency
@ 2015-02-18 15:29 Arnd Bergmann
  2015-02-19  9:41 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Arnd Bergmann @ 2015-02-18 15:29 UTC (permalink / raw)
  To: broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Barry Song

The sirf spi driver only builds correctly if the reset controller
framework is available, otherwise we get an error:

drivers/spi/spi-sirf.c: In function 'spi_sirfsoc_probe':
drivers/spi/spi-sirf.c:651:2: error: implicit declaration of function 'device_reset' [-Werror=implicit-function-declaration]

The adds a dependency in Kconfig to prevent it from being selected
if the resets are not available.

Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Fixes:  8509c55fcb51 ("spi: sirf: reset SPI controller in init stage")

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index ab8dfbef6f1b..b3ae90e4c03c 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -507,6 +507,7 @@ config SPI_SH_HSPI
 config SPI_SIRF
 	tristate "CSR SiRFprimaII SPI controller"
 	depends on SIRF_DMA
+	depends on RESET_CONTROLLER
 	select SPI_BITBANG
 	help
 	  SPI driver for CSR SiRFprimaII SoCs

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-02-24 14:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-18 15:29 [PATCH] spi: sirf: add reset controller dependency Arnd Bergmann
2015-02-19  9:41 ` Mark Brown
     [not found]   ` <20150219094155.GA3198-bheZrs9scGb3/WHNxyQH9YN0K6Il/+VY@public.gmane.org>
2015-02-19 15:01     ` Arnd Bergmann
2015-02-21  9:44       ` Mark Brown
     [not found]         ` <20150221094458.GM6236-bheZrs9scGb3/WHNxyQH9YN0K6Il/+VY@public.gmane.org>
2015-02-23 22:01           ` Arnd Bergmann
2015-02-24  7:50             ` Mark Brown
     [not found]               ` <20150224075018.GM6236-bheZrs9scGb3/WHNxyQH9YN0K6Il/+VY@public.gmane.org>
2015-02-24 10:27                 ` Arnd Bergmann
2015-02-24 10:56                   ` Chen-Yu Tsai
     [not found]                     ` <CAGb2v64hgW39c+gQXp-btpOu2_ddEnGBQk7udMGatCG8We+dBQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-24 13:34                       ` Arnd Bergmann
2015-02-24 13:36                         ` Chen-Yu Tsai
2015-02-24 13:02               ` Arnd Bergmann
2015-02-24 14:27                 ` Philipp Zabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).