diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-26 11:21:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-26 11:21:03 -0400 |
commit | 7e016d146f90530545798ad46ec0662c1c69c505 (patch) | |
tree | eb91cc54f8c9803095c8bc156c1d56b14816b37d /drivers/spi/spi-pxa2xx-dma.c | |
parent | 37553b9236d36cc9ca18f1e5633fda4ed48bc50d (diff) | |
parent | 4b30f2a1218220c295b01af6f219ab0477064a74 (diff) |
Merge remote-tracking branch 'spi/topic/pxa' into spi-next
Diffstat (limited to 'drivers/spi/spi-pxa2xx-dma.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx-dma.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/spi/spi-pxa2xx-dma.c b/drivers/spi/spi-pxa2xx-dma.c index 6427600b5bbe..3c0b55125f1e 100644 --- a/drivers/spi/spi-pxa2xx-dma.c +++ b/drivers/spi/spi-pxa2xx-dma.c | |||
@@ -327,22 +327,23 @@ void pxa2xx_spi_dma_start(struct driver_data *drv_data) | |||
327 | int pxa2xx_spi_dma_setup(struct driver_data *drv_data) | 327 | int pxa2xx_spi_dma_setup(struct driver_data *drv_data) |
328 | { | 328 | { |
329 | struct pxa2xx_spi_master *pdata = drv_data->master_info; | 329 | struct pxa2xx_spi_master *pdata = drv_data->master_info; |
330 | struct device *dev = &drv_data->pdev->dev; | ||
330 | dma_cap_mask_t mask; | 331 | dma_cap_mask_t mask; |
331 | 332 | ||
332 | dma_cap_zero(mask); | 333 | dma_cap_zero(mask); |
333 | dma_cap_set(DMA_SLAVE, mask); | 334 | dma_cap_set(DMA_SLAVE, mask); |
334 | 335 | ||
335 | drv_data->dummy = devm_kzalloc(&drv_data->pdev->dev, SZ_2K, GFP_KERNEL); | 336 | drv_data->dummy = devm_kzalloc(dev, SZ_2K, GFP_KERNEL); |
336 | if (!drv_data->dummy) | 337 | if (!drv_data->dummy) |
337 | return -ENOMEM; | 338 | return -ENOMEM; |
338 | 339 | ||
339 | drv_data->tx_chan = dma_request_channel(mask, pxa2xx_spi_dma_filter, | 340 | drv_data->tx_chan = dma_request_slave_channel_compat(mask, |
340 | pdata); | 341 | pxa2xx_spi_dma_filter, pdata, dev, "tx"); |
341 | if (!drv_data->tx_chan) | 342 | if (!drv_data->tx_chan) |
342 | return -ENODEV; | 343 | return -ENODEV; |
343 | 344 | ||
344 | drv_data->rx_chan = dma_request_channel(mask, pxa2xx_spi_dma_filter, | 345 | drv_data->rx_chan = dma_request_slave_channel_compat(mask, |
345 | pdata); | 346 | pxa2xx_spi_dma_filter, pdata, dev, "rx"); |
346 | if (!drv_data->rx_chan) { | 347 | if (!drv_data->rx_chan) { |
347 | dma_release_channel(drv_data->tx_chan); | 348 | dma_release_channel(drv_data->tx_chan); |
348 | drv_data->tx_chan = NULL; | 349 | drv_data->tx_chan = NULL; |