From: Jeff Garzik Signed-off-by: Jeff Garzik Cc: David Brownell Signed-off-by: Andrew Morton --- drivers/spi/spi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/spi/spi.c~spi-improve-sysfs-compiler-complaint-handling drivers/spi/spi.c --- a/drivers/spi/spi.c~spi-improve-sysfs-compiler-complaint-handling +++ a/drivers/spi/spi.c @@ -448,7 +448,9 @@ static int __unregister(struct device *d */ 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); _