spi/fsl-espi: disable CONFIG_SPI_FSL_ESPI=m build
authorJiri Slaby <jslaby@suse.cz>
Wed, 7 Dec 2011 20:18:16 +0000 (21:18 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 7 Dec 2011 20:58:25 +0000 (21:58 +0100)
commitd9ddcec35d713dd33dc20dcb4db84db35f9956a6
tree5fe6447cc0d66c37c755455b724256df1da791e7
parent00d2952caa6b0b2cd113494ae39f08c4663f371b
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 <jslaby@suse.cz>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/spi/Kconfig