Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328596
b: refs/heads/master
c: 154390d
h: refs/heads/master
v: v3
  • Loading branch information
Guenter Roeck authored and Mark Brown committed Aug 27, 2012
1 parent ca852a4 commit 5344124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 58ed90de3ef58a19c035355a4a0cd6dfef6d6b0c
refs/heads/master: 154390dcf826dc97b9d338305db14582c32cb58a
6 changes: 1 addition & 5 deletions trunk/drivers/spi/spi-stmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,7 @@ static int __devexit stmp_spi_remove(struct platform_device *dev)
struct stmp_spi *ss;
struct spi_master *master;

master = platform_get_drvdata(dev);
if (master == NULL)
goto out0;
master = spi_master_get(platform_get_drvdata(dev));
ss = spi_master_get_devdata(master);

spi_unregister_master(master);
Expand All @@ -609,8 +607,6 @@ static int __devexit stmp_spi_remove(struct platform_device *dev)
destroy_workqueue(ss->workqueue);
iounmap(ss->regs);
spi_master_put(master);
platform_set_drvdata(dev, NULL);
out0:
return 0;
}

Expand Down

0 comments on commit 5344124

Please sign in to comment.