mfd: Fix a memory leak when unload mc13xxx-core module
authorAxel Lin <axel.lin@gmail.com>
Fri, 22 Oct 2010 10:29:21 +0000 (12:29 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:30:43 +0000 (00:30 +0200)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13xxx-core.c

index 1326e7f..a2ac2ed 100644 (file)
@@ -795,6 +795,8 @@ static int __devexit mc13xxx_remove(struct spi_device *spi)
 
        mfd_remove_devices(&spi->dev);
 
+       kfree(mc13xxx);
+
        return 0;
 }