summaryrefslogtreecommitdiff
path: root/drivers/dma/mv_xor.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-15 15:36:37 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 15:59:00 +0100
commit9aedbdbab39c8aa58c0b2a0791fb10df6eebc123 (patch)
treead8a80c2cdfbc891203dcbccd529e1be08fbbbae /drivers/dma/mv_xor.c
parentc819ce177eb4dc796996618c1d53856cad1201ec (diff)
dma: mv_xor: remove hw_id field from platform_data
There is no need for the platform_data to give this ID, it is simply the channel number, so we can compute it inside the driver when registering the channels. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r--drivers/dma/mv_xor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index a6a5a28574c4..fc983bf38438 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1088,7 +1088,7 @@ static int mv_xor_channel_remove(struct mv_xor_chan *mv_chan)
static struct mv_xor_chan *
mv_xor_channel_add(struct mv_xor_device *xordev,
struct platform_device *pdev,
- int hw_id, dma_cap_mask_t cap_mask,
+ int idx, dma_cap_mask_t cap_mask,
size_t pool_size, int irq)
{
int ret = 0;
@@ -1101,7 +1101,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
goto err_free_dma;
}
- mv_chan->idx = hw_id;
+ mv_chan->idx = idx;
dma_dev = &mv_chan->dmadev;
@@ -1295,7 +1295,7 @@ static int mv_xor_probe(struct platform_device *pdev)
}
xordev->channels[i] =
- mv_xor_channel_add(xordev, pdev, cd->hw_id,
+ mv_xor_channel_add(xordev, pdev, i,
cd->cap_mask,
cd->pool_size, irq);
if (IS_ERR(xordev->channels[i])) {