Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210626
b: refs/heads/master
c: 3486008
h: refs/heads/master
v: v3
  • Loading branch information
David Lamparter authored and Grant Likely committed Sep 1, 2010
1 parent 3517fd1 commit 5692d12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 4e4438b86527e8bf1f49503a30d487e401e64f9c
refs/heads/master: 34860089c9e8abcc77428d29743b37ff756197e7
9 changes: 3 additions & 6 deletions trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,9 @@ int spi_register_master(struct spi_master *master)
EXPORT_SYMBOL_GPL(spi_register_master);


static int __unregister(struct device *dev, void *master_dev)
static int __unregister(struct device *dev, void *null)
{
/* note: before about 2.6.14-rc1 this would corrupt memory: */
if (dev != master_dev)
spi_unregister_device(to_spi_device(dev));
spi_unregister_device(to_spi_device(dev));
return 0;
}

Expand All @@ -576,8 +574,7 @@ void spi_unregister_master(struct spi_master *master)
{
int dummy;

dummy = device_for_each_child(master->dev.parent, &master->dev,
__unregister);
dummy = device_for_each_child(&master->dev, NULL, __unregister);
device_unregister(&master->dev);
}
EXPORT_SYMBOL_GPL(spi_unregister_master);
Expand Down

0 comments on commit 5692d12

Please sign in to comment.