Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328626
b: refs/heads/master
c: 7d520d2
h: refs/heads/master
v: v3
  • Loading branch information
Guenter Roeck authored and Mark Brown committed Aug 27, 2012
1 parent d21179a commit 3e31937
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 41682e03d4fdc947dbd22725d70f222cc7746852
refs/heads/master: 7d520d28dd5287d14b5ec6cf4405a1220ca57d42
5 changes: 1 addition & 4 deletions trunk/drivers/spi/spi-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,6 @@ static int __devinit mxs_spi_probe(struct platform_device *pdev)
return 0;

out_free_dma:
platform_set_drvdata(pdev, NULL);
dma_release_channel(ssp->dmach);
clk_disable_unprepare(ssp->clk);
out_master_free:
Expand All @@ -600,14 +599,12 @@ static int __devexit mxs_spi_remove(struct platform_device *pdev)
struct mxs_spi *spi;
struct mxs_ssp *ssp;

master = platform_get_drvdata(pdev);
master = spi_master_get(platform_get_drvdata(pdev));
spi = spi_master_get_devdata(master);
ssp = &spi->ssp;

spi_unregister_master(master);

platform_set_drvdata(pdev, NULL);

dma_release_channel(ssp->dmach);

clk_disable_unprepare(ssp->clk);
Expand Down

0 comments on commit 3e31937

Please sign in to comment.