Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347080
b: refs/heads/master
c: c35d3cf
h: refs/heads/master
v: v3
  • Loading branch information
Marek Vasut authored and Wolfram Sang committed Nov 22, 2012
1 parent f816fcc commit 44d07b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31f313d9bebfc17e48c787c8c36b38662b4134a1
refs/heads/master: c35d3cfdbc8d4fb4358a5bc97a334dbdb86e3d69
2 changes: 2 additions & 0 deletions trunk/drivers/i2c/busses/i2c-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,14 @@ static int mxs_i2c_dma_setup_xfer(struct i2c_adapter *adap,
select_init_dma_fail:
dma_unmap_sg(i2c->dev, &i2c->sg_io[0], 1, DMA_TO_DEVICE);
select_init_pio_fail:
dmaengine_terminate_all(i2c->dmach);
return -EINVAL;

/* Write failpath. */
write_init_dma_fail:
dma_unmap_sg(i2c->dev, i2c->sg_io, 2, DMA_TO_DEVICE);
write_init_pio_fail:
dmaengine_terminate_all(i2c->dmach);
return -EINVAL;
}

Expand Down

0 comments on commit 44d07b6

Please sign in to comment.