aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>2014-02-25 05:21:13 -0500
committerMark Brown <broonie@linaro.org>2014-02-27 05:44:04 -0500
commit1bd6363bc0c69ff6120b53daa35cf9459c3628ad (patch)
tree224b9dbe88eefa5f528a12a25065d7e200326b6d /drivers/spi/Kconfig
parent2416289c714343ea855e725d59d42668a9ab3cf6 (diff)
spi: sh-msiof: Use core message handling instead of spi-bitbang
The only remaining feature of spi-bitbang used by this driver is the chipselect() callback, which just does conditional GPIO. This is handled fine by the SPI core's spi_set_cs(), hence switch the driver to use the core message handling through our own transfer_one() method. As the (optional) GPIO CS is no longer deasserted at spi_master.setup() time (through spi_bitbang_setup() and the spi_bitbang.chipselect() callback), we now have to take care of that ourselves. Remove the call to spi_master_put() in sh_msiof_spi_remove(), as our SPI master is now registered using devm_spi_register_master() (spi_bitbang_start() uses the non-managed version). Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r--drivers/spi/Kconfig1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index ba9310bc9acb..16f2987c29dc 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -416,7 +416,6 @@ config SPI_SH_MSIOF
416 tristate "SuperH MSIOF SPI controller" 416 tristate "SuperH MSIOF SPI controller"
417 depends on HAVE_CLK 417 depends on HAVE_CLK
418 depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST 418 depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
419 select SPI_BITBANG
420 help 419 help
421 SPI driver for SuperH and SH Mobile MSIOF blocks. 420 SPI driver for SuperH and SH Mobile MSIOF blocks.
422 421