diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-12-06 20:35:35 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:31 -0800 |
commit | 89fc9a1a79725c3e5c3b66cb6bd2c7d9eeab29fa (patch) | |
tree | 6909cae5517b03ef7446ee958f27ff5a94bc7955 /drivers/spi | |
parent | e45f4676108d19ae93918f06cb6731c86108341a (diff) | |
download | linux-89fc9a1a79725c3e5c3b66cb6bd2c7d9eeab29fa.tar.gz linux-89fc9a1a79725c3e5c3b66cb6bd2c7d9eeab29fa.tar.bz2 linux-89fc9a1a79725c3e5c3b66cb6bd2c7d9eeab29fa.zip |
[PATCH] SPI: improve sysfs compiler complaint handling
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 09f2c74a40c5..1a3c963dc48a 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -447,7 +447,9 @@ static int __unregister(struct device *dev, void *unused) */ void spi_unregister_master(struct spi_master *master) { - (void) device_for_each_child(master->cdev.dev, NULL, __unregister); + int dummy; + + dummy = device_for_each_child(master->cdev.dev, NULL, __unregister); class_device_unregister(&master->cdev); } EXPORT_SYMBOL_GPL(spi_unregister_master); |