@@ -87,6 +87,7 @@ int fsi_device_peek(struct fsi_device *dev, void *val)
static void fsi_device_release(struct device *_device)
{
struct fsi_device *device = to_fsi_dev(_device);
+
kfree(device);
}
@@ -187,8 +188,10 @@ static int fsi_slave_scan(struct fsi_slave *slave)
type = (conf & FSI_SLAVE_CONF_TYPE_MASK)
>> FSI_SLAVE_CONF_TYPE_SHIFT;
- /* Unused address areas are marked by a zero type value; this
- * skips the defined address areas */
+ /*
+ * Unused address areas are marked by a zero type value; this
+ * skips the defined address areas
+ */
if (type != 0) {
/* create device */
@@ -231,6 +234,7 @@ static int fsi_slave_scan(struct fsi_slave *slave)
static void fsi_slave_release(struct device *dev)
{
struct fsi_slave *slave = to_fsi_slave(dev);
+
kfree(slave);
}
@@ -93,4 +93,3 @@ static int __init fsi_master_fake_init(void)
}
module_init(fsi_master_fake_init);
-
@@ -89,4 +89,3 @@ static struct platform_driver fsi_master_gpio_driver = {
};
module_platform_driver(fsi_master_gpio_driver);
-