aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi.c4
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)
447 */ 447 */
448void spi_unregister_master(struct spi_master *master) 448void spi_unregister_master(struct spi_master *master)
449{ 449{
450 (void) device_for_each_child(master->cdev.dev, NULL, __unregister); 450 int dummy;
451
452 dummy = device_for_each_child(master->cdev.dev, NULL, __unregister);
451 class_device_unregister(&master->cdev); 453 class_device_unregister(&master->cdev);
452} 454}
453EXPORT_SYMBOL_GPL(spi_unregister_master); 455EXPORT_SYMBOL_GPL(spi_unregister_master);