diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-11-21 23:43:04 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-12-19 16:25:07 -0500 |
commit | 0360dffedd7bad92f174b2ce5e69e960451d2b59 (patch) | |
tree | 413b8a3c5d96867ed288b7040bca5e8f600fd3bb /drivers/watchdog/da9052_wdt.c | |
parent | 2bc3f62f9627f136bb52b4cfa43060ef04656d2f (diff) |
watchdog: da9052: Fix invalid free of devm_ allocated data
It is not required to free devm_ allocated data. Since kref_put
needs a valid release function, da9052_wdt_release_resources()
is not deleted.
Fixes following warning.
drivers/watchdog/da9052_wdt.c:59:1-6: WARNING: invalid free of
devm_ allocated data
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/da9052_wdt.c')
-rw-r--r-- | drivers/watchdog/da9052_wdt.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/watchdog/da9052_wdt.c b/drivers/watchdog/da9052_wdt.c index 8be70d8f2680..367445009c64 100644 --- a/drivers/watchdog/da9052_wdt.c +++ b/drivers/watchdog/da9052_wdt.c | |||
@@ -53,10 +53,6 @@ static const struct { | |||
53 | 53 | ||
54 | static void da9052_wdt_release_resources(struct kref *r) | 54 | static void da9052_wdt_release_resources(struct kref *r) |
55 | { | 55 | { |
56 | struct da9052_wdt_data *driver_data = | ||
57 | container_of(r, struct da9052_wdt_data, kref); | ||
58 | |||
59 | kfree(driver_data); | ||
60 | } | 56 | } |
61 | 57 | ||
62 | static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, | 58 | static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, |