aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2012-12-21 08:09:06 -0500
committerWim Van Sebroeck <wim@iguana.be>2013-01-02 06:06:43 -0500
commitee8c94adff9bd8609e70fb2ecdfaa71f561ed40d (patch)
treeec8b1cd9f8c525db48cf5720e5412066def83fc2 /drivers/watchdog
parent4a490b78cb7e0e5efa44425df72a9fedc1c36366 (diff)
watchdog: da9055: Fix invalid free of devm_ allocated data
It is not required to free devm_ allocated data. Since kref_put needs a valid release function, da9055_wdt_release_resources() is not deleted. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/da9055_wdt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/watchdog/da9055_wdt.c b/drivers/watchdog/da9055_wdt.c
index 709ea1aefebb..31d537959bcc 100644
--- a/drivers/watchdog/da9055_wdt.c
+++ b/drivers/watchdog/da9055_wdt.c
@@ -102,10 +102,6 @@ static int da9055_wdt_ping(struct watchdog_device *wdt_dev)
102 102
103static void da9055_wdt_release_resources(struct kref *r) 103static void da9055_wdt_release_resources(struct kref *r)
104{ 104{
105 struct da9055_wdt_data *driver_data =
106 container_of(r, struct da9055_wdt_data, kref);
107
108 kfree(driver_data);
109} 105}
110 106
111static void da9055_wdt_ref(struct watchdog_device *wdt_dev) 107static void da9055_wdt_ref(struct watchdog_device *wdt_dev)