diff mbox

spi: spi_device memory should be released instead of device.

Message ID 1271066195-17664-1-git-send-email-roman.tereshonkov@nokia.com (mailing list archive)
State Accepted
Headers show

Commit Message

Roman Tereshonkov April 12, 2010, 9:56 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 9ffb0fd..5ec8e5f 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -41,7 +41,7 @@  static void spidev_release(struct device *dev)
 		spi->master->cleanup(spi);
 
 	spi_master_put(spi->master);
-	kfree(dev);
+	kfree(spi);
 }
 
 static ssize_t