diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-01 08:48:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-01 08:48:44 -0400 |
commit | b29bc3df37afa440290f4b8e50cf5dce429ce22f (patch) | |
tree | 2ba216f8d2e3157c535a3535d821133f977e7067 /drivers/spi/spi-altera.c | |
parent | c3dbe2b76a835fb4b2633645b0c49359b49eb128 (diff) | |
parent | 2e29db400c4898ff72e2ea87d262921df00f1c87 (diff) |
Merge remote-tracking branch 'spi/topic/bitbang' into spi-next
Diffstat (limited to 'drivers/spi/spi-altera.c')
-rw-r--r-- | drivers/spi/spi-altera.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index 523f2f649e26..156eb888655e 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
@@ -103,16 +103,6 @@ static void altera_spi_chipsel(struct spi_device *spi, int value) | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
106 | static int altera_spi_setupxfer(struct spi_device *spi, struct spi_transfer *t) | ||
107 | { | ||
108 | return 0; | ||
109 | } | ||
110 | |||
111 | static int altera_spi_setup(struct spi_device *spi) | ||
112 | { | ||
113 | return 0; | ||
114 | } | ||
115 | |||
116 | static inline unsigned int hw_txbyte(struct altera_spi *hw, int count) | 106 | static inline unsigned int hw_txbyte(struct altera_spi *hw, int count) |
117 | { | 107 | { |
118 | if (hw->tx) { | 108 | if (hw->tx) { |
@@ -224,7 +214,6 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
224 | master->bus_num = pdev->id; | 214 | master->bus_num = pdev->id; |
225 | master->num_chipselect = 16; | 215 | master->num_chipselect = 16; |
226 | master->mode_bits = SPI_CS_HIGH; | 216 | master->mode_bits = SPI_CS_HIGH; |
227 | master->setup = altera_spi_setup; | ||
228 | 217 | ||
229 | hw = spi_master_get_devdata(master); | 218 | hw = spi_master_get_devdata(master); |
230 | platform_set_drvdata(pdev, hw); | 219 | platform_set_drvdata(pdev, hw); |
@@ -233,7 +222,6 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
233 | hw->bitbang.master = spi_master_get(master); | 222 | hw->bitbang.master = spi_master_get(master); |
234 | if (!hw->bitbang.master) | 223 | if (!hw->bitbang.master) |
235 | return err; | 224 | return err; |
236 | hw->bitbang.setup_transfer = altera_spi_setupxfer; | ||
237 | hw->bitbang.chipselect = altera_spi_chipsel; | 225 | hw->bitbang.chipselect = altera_spi_chipsel; |
238 | hw->bitbang.txrx_bufs = altera_spi_txrx; | 226 | hw->bitbang.txrx_bufs = altera_spi_txrx; |
239 | 227 | ||