summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65912-core.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-05-23 16:25:02 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-13 12:11:39 +0200
commitb3fff1770a33abb1905eae2baa8dffd48e5913ae (patch)
tree971a3ba74267bfe4a17319e599bcb3df9ecddbc7 /drivers/mfd/tps65912-core.c
parentc5fa44d13496eba51ab58ac0d1502825543f51aa (diff)
downloadlinux-b3fff1770a33abb1905eae2baa8dffd48e5913ae.tar.gz
linux-b3fff1770a33abb1905eae2baa8dffd48e5913ae.tar.bz2
linux-b3fff1770a33abb1905eae2baa8dffd48e5913ae.zip
mfd: tps65912: Convert to managed resources for allocating memory
Saves on code and simplifies the driver, as these resources are now tracked and freed automatically when the driver is realised. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65912-core.c')
-rw-r--r--drivers/mfd/tps65912-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/tps65912-core.c b/drivers/mfd/tps65912-core.c
index aeb8e40ab424..479886a4cf80 100644
--- a/drivers/mfd/tps65912-core.c
+++ b/drivers/mfd/tps65912-core.c
@@ -162,7 +162,6 @@ int tps65912_device_init(struct tps65912 *tps65912)
err:
kfree(init_data);
mfd_remove_devices(tps65912->dev);
- kfree(tps65912);
return ret;
}
@@ -170,7 +169,6 @@ void tps65912_device_exit(struct tps65912 *tps65912)
{
mfd_remove_devices(tps65912->dev);
tps65912_irq_exit(tps65912);
- kfree(tps65912);
}
MODULE_AUTHOR("Margarita Olaya <magi@slimlogic.co.uk>");