Skip to content

Commit 273340e

Browse files
committed
ata: pata_pxa: remove the dmaengine compat need
As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more generic function dma_request_slave_channel(). Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
1 parent ac75a50 commit 273340e

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎drivers/ata/pata_pxa.c‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/libata.h>
2626
#include <linux/platform_device.h>
2727
#include <linux/dmaengine.h>
28-
#include <linux/dma/pxa-dma.h>
2928
#include <linux/gpio.h>
3029
#include <linux/slab.h>
3130
#include <linux/completion.h>
@@ -180,8 +179,6 @@ static int pxa_ata_probe(struct platform_device *pdev)
180179
struct resource *irq_res;
181180
struct pata_pxa_pdata *pdata = dev_get_platdata(&pdev->dev);
182181
struct dma_slave_config config;
183-
dma_cap_mask_t mask;
184-
struct pxad_param param;
185182
int ret = 0;
186183

187184
/*
@@ -278,10 +275,6 @@ static int pxa_ata_probe(struct platform_device *pdev)
278275

279276
ap->private_data = data;
280277

281-
dma_cap_zero(mask);
282-
dma_cap_set(DMA_SLAVE, mask);
283-
param.prio = PXAD_PRIO_LOWEST;
284-
param.drcmr = pdata->dma_dreq;
285278
memset(&config, 0, sizeof(config));
286279
config.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
287280
config.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
@@ -294,8 +287,7 @@ static int pxa_ata_probe(struct platform_device *pdev)
294287
* Request the DMA channel
295288
*/
296289
data->dma_chan =
297-
dma_request_slave_channel_compat(mask, pxad_filter_fn,
298-
&param, &pdev->dev, "data");
290+
dma_request_slave_channel(&pdev->dev, "data");
299291
if (!data->dma_chan)
300292
return -EBUSY;
301293
ret = dmaengine_slave_config(data->dma_chan, &config);

0 commit comments

Comments
 (0)