diff options
author | Emil Goode <emilgoode@gmail.com> | 2013-06-05 21:29:56 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 15:00:56 +0400 |
commit | b0e449ce658c0eacbf7bdc76efe15a65359f63ef (patch) | |
tree | 0b338821d927fe8368cad7de2913745c06b42185 | |
parent | 5391e87d1259e45fbb153aad97fe21a41403b534 (diff) | |
download | linux-b0e449ce658c0eacbf7bdc76efe15a65359f63ef.tar.xz |
OMAPDSS: Remove kfree for memory allocated with devm_kzalloc
It's not necessary to free memory allocated with devm_kzalloc
in a remove function and using kfree leads to a double free.
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/omap2/displays/panel-picodlp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-picodlp.c b/drivers/video/omap2/displays/panel-picodlp.c index 875b8902f647..153e9bea0f6e 100644 --- a/drivers/video/omap2/displays/panel-picodlp.c +++ b/drivers/video/omap2/displays/panel-picodlp.c @@ -469,8 +469,6 @@ static void picodlp_panel_remove(struct omap_dss_device *dssdev) i2c_unregister_device(picod->picodlp_i2c_client); dev_set_drvdata(dssdev->dev, NULL); dev_dbg(dssdev->dev, "removing picodlp panel\n"); - - kfree(picod); } static int picodlp_panel_enable(struct omap_dss_device *dssdev) |