Skip to content

Commit d9ddcec

Browse files
Jiri SlabyWolfram Sang
authored andcommitted
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 <[email protected]> Acked-by: Kumar Gala <[email protected]> Cc: Grant Likely <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 00d2952 commit d9ddcec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ config SPI_FSL_LIB
199199
depends on FSL_SOC
200200

201201
config SPI_FSL_SPI
202-
tristate "Freescale SPI controller"
202+
bool "Freescale SPI controller"
203203
depends on FSL_SOC
204204
select SPI_FSL_LIB
205205
help
@@ -208,7 +208,7 @@ config SPI_FSL_SPI
208208
MPC8569 uses the controller in QE mode, MPC8610 in cpu mode.
209209

210210
config SPI_FSL_ESPI
211-
tristate "Freescale eSPI controller"
211+
bool "Freescale eSPI controller"
212212
depends on FSL_SOC
213213
select SPI_FSL_LIB
214214
help

0 commit comments

Comments
 (0)