Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365229
b: refs/heads/master
c: 1888e8f
h: refs/heads/master
i:
  365227: f025c78
v: v3
  • Loading branch information
Nicolas Ferre authored and Mark Brown committed Apr 1, 2013
1 parent 68d8c11 commit 784dafc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 97ed465b4d3b6ec6ab12d1ee0cea48a66891c985
refs/heads/master: 1888e8f2f55c40656d8eff68572abb3748068b96
8 changes: 5 additions & 3 deletions trunk/drivers/spi/spi-atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ static int atmel_spi_remove(struct platform_device *pdev)
struct spi_master *master = platform_get_drvdata(pdev);
struct atmel_spi *as = spi_master_get_devdata(master);
struct spi_message *msg;
struct spi_transfer *xfer;

/* reset the hardware and block queue progress */
spin_lock_irq(&as->lock);
Expand All @@ -1058,9 +1059,10 @@ static int atmel_spi_remove(struct platform_device *pdev)

/* Terminate remaining queued transfers */
list_for_each_entry(msg, &as->queue, queue) {
/* REVISIT unmapping the dma is a NOP on ARM and AVR32
* but we shouldn't depend on that...
*/
list_for_each_entry(xfer, &msg->transfers, transfer_list) {
if (!msg->is_dma_mapped)
atmel_spi_dma_unmap_xfer(master, xfer);
}
msg->status = -ESHUTDOWN;
msg->complete(msg->context);
}
Expand Down

0 comments on commit 784dafc

Please sign in to comment.