diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-23 19:25:02 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-13 14:11:39 +0400 |
commit | b3fff1770a33abb1905eae2baa8dffd48e5913ae (patch) | |
tree | 971a3ba74267bfe4a17319e599bcb3df9ecddbc7 /drivers/mfd/tps65912-core.c | |
parent | c5fa44d13496eba51ab58ac0d1502825543f51aa (diff) | |
download | linux-b3fff1770a33abb1905eae2baa8dffd48e5913ae.tar.xz |
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.c | 2 |
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>"); |