diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-09 17:26:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-09 17:32:10 +0100 |
commit | 30af9b558a56200bda5febd140d5b826581d1f15 (patch) | |
tree | 03a62c66afb5cadc4ec35f388cbfa4e3194c0344 /drivers/spi/spi-nuc900.c | |
parent | 52ade736215fb4421a6dc2b6900703a6fadba9e9 (diff) | |
download | linux-30af9b558a56200bda5febd140d5b826581d1f15.tar.gz linux-30af9b558a56200bda5febd140d5b826581d1f15.tar.bz2 linux-30af9b558a56200bda5febd140d5b826581d1f15.zip |
spi/bitbang: Drop empty setup() functions
Now that the bitbang core does not require a setup() function we can
drop the check in the altera, nuc900 and xilinx drivers.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-nuc900.c')
-rw-r--r-- | drivers/spi/spi-nuc900.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index 150d85453c27..2ad3d74ac021 100644 --- a/drivers/spi/spi-nuc900.c +++ b/drivers/spi/spi-nuc900.c @@ -174,17 +174,6 @@ static void nuc900_spi_gobusy(struct nuc900_spi *hw) spin_unlock_irqrestore(&hw->lock, flags); } -static int nuc900_spi_setupxfer(struct spi_device *spi, - struct spi_transfer *t) -{ - return 0; -} - -static int nuc900_spi_setup(struct spi_device *spi) -{ - return 0; -} - static inline unsigned int hw_txbyte(struct nuc900_spi *hw, int count) { return hw->tx ? hw->tx[count] : 0; @@ -377,10 +366,8 @@ static int nuc900_spi_probe(struct platform_device *pdev) master->num_chipselect = hw->pdata->num_cs; master->bus_num = hw->pdata->bus_num; hw->bitbang.master = hw->master; - hw->bitbang.setup_transfer = nuc900_spi_setupxfer; hw->bitbang.chipselect = nuc900_spi_chipsel; hw->bitbang.txrx_bufs = nuc900_spi_txrx; - hw->bitbang.master->setup = nuc900_spi_setup; hw->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (hw->res == NULL) { |