Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344275
b: refs/heads/master
c: ecde6cd
h: refs/heads/master
i:
  344273: a4e5419
  344271: 02ae404
v: v3
  • Loading branch information
Thomas Petazzoni committed Nov 20, 2012
1 parent f4aa47f commit e4aed16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c98c17813e3985ebfd657496bfb49d7174d1fad1
refs/heads/master: ecde6cd4924205e815adf8f1b0df98965e804e7f
9 changes: 4 additions & 5 deletions trunk/drivers/dma/mv_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ mv_xor_run_tx_complete_actions(struct mv_xor_desc_slot *desc,
*/
if (desc->group_head && desc->unmap_len) {
struct mv_xor_desc_slot *unmap = desc->group_head;
struct device *dev =
&mv_chan->device->pdev->dev;
struct device *dev = mv_chan_to_devp(mv_chan);
u32 len = unmap->unmap_len;
enum dma_ctrl_flags flags = desc->async_tx.flags;
u32 src_cnt;
Expand Down Expand Up @@ -1077,10 +1076,11 @@ static int mv_xor_channel_remove(struct mv_xor_device *device)
{
struct dma_chan *chan, *_chan;
struct mv_xor_chan *mv_chan;
struct device *dev = device->common.dev;

dma_async_device_unregister(&device->common);

dma_free_coherent(&device->pdev->dev, device->pool_size,
dma_free_coherent(dev, device->pool_size,
device->dma_desc_pool_virt, device->dma_desc_pool);

list_for_each_entry_safe(chan, _chan, &device->common.channels,
Expand Down Expand Up @@ -1123,7 +1123,6 @@ mv_xor_channel_add(struct mv_xor_private *msp,

/* discover transaction capabilites from the platform data */
dma_dev->cap_mask = cap_mask;
adev->pdev = pdev;
adev->shared = msp;

INIT_LIST_HEAD(&dma_dev->channels);
Expand Down Expand Up @@ -1208,7 +1207,7 @@ mv_xor_channel_add(struct mv_xor_private *msp,
return adev;

err_free_dma:
dma_free_coherent(&adev->pdev->dev, pool_size,
dma_free_coherent(&pdev->dev, pool_size,
adev->dma_desc_pool_virt, adev->dma_desc_pool);
return ERR_PTR(ret);
}
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/dma/mv_xor.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ struct mv_xor_private {
* @common: embedded struct dma_device
*/
struct mv_xor_device {
struct platform_device *pdev;
dma_addr_t dma_desc_pool;
void *dma_desc_pool_virt;
size_t pool_size;
Expand Down

0 comments on commit e4aed16

Please sign in to comment.