summaryrefslogtreecommitdiffstats
path: root/drivers/power/wm831x_backup.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-05-04 07:57:55 +0200
committerAnton Vorontsov <anton@enomsg.org>2013-05-10 20:56:22 +0200
commitc909fc8573af3cff9184551e79cf37784b5ddc24 (patch)
tree76322082daf7f585a1554c418950f2eac53b9abe /drivers/power/wm831x_backup.c
parentbq27x00: Fix I2C dependency in KConfig (diff)
downloadlinux-c909fc8573af3cff9184551e79cf37784b5ddc24.tar.xz
linux-c909fc8573af3cff9184551e79cf37784b5ddc24.zip
wm831x_backup: Fix wrong kfree call for devdata->backup.name
devdata->backup.name points to devdata->name, the memory for devdata->name is part of struct wm831x_backup. Thus remove kfree call for devdata->backup.name. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/wm831x_backup.c')
-rw-r--r--drivers/power/wm831x_backup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/power/wm831x_backup.c b/drivers/power/wm831x_backup.c
index 58cbb009b74f..56fb509f4be0 100644
--- a/drivers/power/wm831x_backup.c
+++ b/drivers/power/wm831x_backup.c
@@ -207,7 +207,6 @@ static int wm831x_backup_remove(struct platform_device *pdev)
struct wm831x_backup *devdata = platform_get_drvdata(pdev);
power_supply_unregister(&devdata->backup);
- kfree(devdata->backup.name);
return 0;
}