Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188432
b: refs/heads/master
c: 5e77494
h: refs/heads/master
v: v3
  • Loading branch information
Scott Ellis authored and Grant Likely committed Mar 10, 2010
1 parent c295aa3 commit 1c091e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 07081fd8587478849b69d7b41596e81ff5a7f532
refs/heads/master: 5e7749436d576a525d7b2a4bcffb17b3364b9e00
10 changes: 6 additions & 4 deletions trunk/drivers/spi/omap2_mcspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,11 +751,13 @@ static void omap2_mcspi_cleanup(struct spi_device *spi)
mcspi = spi_master_get_devdata(spi->master);
mcspi_dma = &mcspi->dma_channels[spi->chip_select];

/* Unlink controller state from context save list */
cs = spi->controller_state;
list_del(&cs->node);
if (spi->controller_state) {
/* Unlink controller state from context save list */
cs = spi->controller_state;
list_del(&cs->node);

kfree(spi->controller_state);
kfree(spi->controller_state);
}

if (mcspi_dma->dma_rx_channel != -1) {
omap_free_dma(mcspi_dma->dma_rx_channel);
Expand Down

0 comments on commit 1c091e5

Please sign in to comment.