spi/spi: don't release the spi device twice
diff mbox

Message ID 20101122133503.GA25553@www.tglx.de
State Superseded, archived
Headers show

Commit Message

Sebastian Andrzej Siewior Nov. 22, 2010, 1:35 p.m. UTC
None

Patch
diff mbox

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 709c836..3c8ff6f 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -586,7 +586,6 @@  void spi_unregister_master(struct spi_master *master)
 
 	dummy = device_for_each_child(master->dev.parent, &master->dev,
 					__unregister);
-	device_unregister(&master->dev);
 }
 EXPORT_SYMBOL_GPL(spi_unregister_master);