diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-29 08:59:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-29 08:59:05 -0400 |
commit | b5f9a9d5113efe11a3b9dad600a6f833274da595 (patch) | |
tree | 6db5fb34a2d590086e25f7f682fecb5f43e6b283 /drivers/spi/spi-nuc900.c | |
parent | a1216394e620d0dfbb03c712ae3210e7b77c9e11 (diff) | |
parent | 8d4d08ce8319ae26227c4dd558405963c14c2037 (diff) |
Merge remote-tracking branch 'spi/topic/rspi' into spi-pdata
Conflicts:
drivers/spi/spi-rspi.c
Diffstat (limited to 'drivers/spi/spi-nuc900.c')
-rw-r--r-- | drivers/spi/spi-nuc900.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index d98244bb4c6c..e19a3074ac53 100644 --- a/drivers/spi/spi-nuc900.c +++ b/drivers/spi/spi-nuc900.c | |||
@@ -174,6 +174,17 @@ static void nuc900_spi_gobusy(struct nuc900_spi *hw) | |||
174 | spin_unlock_irqrestore(&hw->lock, flags); | 174 | spin_unlock_irqrestore(&hw->lock, flags); |
175 | } | 175 | } |
176 | 176 | ||
177 | static int nuc900_spi_setupxfer(struct spi_device *spi, | ||
178 | struct spi_transfer *t) | ||
179 | { | ||
180 | return 0; | ||
181 | } | ||
182 | |||
183 | static int nuc900_spi_setup(struct spi_device *spi) | ||
184 | { | ||
185 | return 0; | ||
186 | } | ||
187 | |||
177 | static inline unsigned int hw_txbyte(struct nuc900_spi *hw, int count) | 188 | static inline unsigned int hw_txbyte(struct nuc900_spi *hw, int count) |
178 | { | 189 | { |
179 | return hw->tx ? hw->tx[count] : 0; | 190 | return hw->tx ? hw->tx[count] : 0; |
@@ -366,8 +377,10 @@ static int nuc900_spi_probe(struct platform_device *pdev) | |||
366 | master->num_chipselect = hw->pdata->num_cs; | 377 | master->num_chipselect = hw->pdata->num_cs; |
367 | master->bus_num = hw->pdata->bus_num; | 378 | master->bus_num = hw->pdata->bus_num; |
368 | hw->bitbang.master = hw->master; | 379 | hw->bitbang.master = hw->master; |
380 | hw->bitbang.setup_transfer = nuc900_spi_setupxfer; | ||
369 | hw->bitbang.chipselect = nuc900_spi_chipsel; | 381 | hw->bitbang.chipselect = nuc900_spi_chipsel; |
370 | hw->bitbang.txrx_bufs = nuc900_spi_txrx; | 382 | hw->bitbang.txrx_bufs = nuc900_spi_txrx; |
383 | hw->bitbang.master->setup = nuc900_spi_setup; | ||
371 | 384 | ||
372 | hw->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 385 | hw->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
373 | if (hw->res == NULL) { | 386 | if (hw->res == NULL) { |