From: Jiri Slaby Date: Wed, 7 Dec 2011 20:18:16 +0000 (+0100) Subject: spi/fsl-espi: disable CONFIG_SPI_FSL_ESPI=m build X-Git-Tag: upstream/snapshot3+hdmi~8581^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9ddcec35d713dd33dc20dcb4db84db35f9956a6;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git spi/fsl-espi: disable CONFIG_SPI_FSL_ESPI=m build When spi_fsl_espi is chosen to be built as a module, there is a build error because we test only CONFIG_SPI_FSL_ESPI in declaration of struct mpc8xxx_spi in drivers/spi/spi_fsl_lib.h. Also some called functions are not exported. So we forbid CONFIG_SPI_FSL_ESPI to be tristate here. The error looks like: drivers/spi/spi_fsl_espi.c: In function 'fsl_espi_bufs': drivers/spi/spi_fsl_espi.c:232: error: 'struct mpc8xxx_spi' has no member named 'len' ... Signed-off-by: Jiri Slaby Acked-by: Kumar Gala Cc: Grant Likely Signed-off-by: Wolfram Sang --- diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index a1fd73d..8ba4510 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -199,7 +199,7 @@ config SPI_FSL_LIB depends on FSL_SOC config SPI_FSL_SPI - tristate "Freescale SPI controller" + bool "Freescale SPI controller" depends on FSL_SOC select SPI_FSL_LIB help @@ -208,7 +208,7 @@ config SPI_FSL_SPI MPC8569 uses the controller in QE mode, MPC8610 in cpu mode. config SPI_FSL_ESPI - tristate "Freescale eSPI controller" + bool "Freescale eSPI controller" depends on FSL_SOC select SPI_FSL_LIB help