diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2012-12-21 12:04:07 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-01-05 05:43:57 -0500 |
commit | 0e87e73f4abe1ada69cf780fe2550c6361a1b53b (patch) | |
tree | fd9d36d05723d47150e54c89ebeb7e21ebbe0420 /drivers/crypto | |
parent | 03feec9cc67eaa21e9aa0d3aede0dfed0629f468 (diff) |
crypto: omap-sham - Convert to dma_request_slave_channel_compat()
Use the dma_request_slave_channel_compat() call instead of
the dma_request_channel() call to request a DMA channel.
This allows the omap-sham driver use different DMA engines.
CC: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/omap-sham.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 860cad866a36..8074bd9947d1 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c | |||
@@ -1292,7 +1292,8 @@ static int __devinit omap_sham_probe(struct platform_device *pdev) | |||
1292 | dma_cap_zero(mask); | 1292 | dma_cap_zero(mask); |
1293 | dma_cap_set(DMA_SLAVE, mask); | 1293 | dma_cap_set(DMA_SLAVE, mask); |
1294 | 1294 | ||
1295 | dd->dma_lch = dma_request_channel(mask, omap_dma_filter_fn, &dd->dma); | 1295 | dd->dma_lch = dma_request_slave_channel_compat(mask, omap_dma_filter_fn, |
1296 | &dd->dma, dev, "rx"); | ||
1296 | if (!dd->dma_lch) { | 1297 | if (!dd->dma_lch) { |
1297 | dev_err(dev, "unable to obtain RX DMA engine channel %u\n", | 1298 | dev_err(dev, "unable to obtain RX DMA engine channel %u\n", |
1298 | dd->dma); | 1299 | dd->dma); |