Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0e449ce authored by Emil Goode's avatar Emil Goode Committed by Tomi Valkeinen
Browse files

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: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 5391e87d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)