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

Commit ad279310 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Inki Dae
Browse files

drm/exynos/hdmi: unregister connector on removal



During component removal driver should unregister connector.

Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 7c61b1ec
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1040,6 +1040,8 @@ static enum drm_connector_status hdmi_detect(struct drm_connector *connector,


static void hdmi_connector_destroy(struct drm_connector *connector)
static void hdmi_connector_destroy(struct drm_connector *connector)
{
{
	drm_connector_unregister(connector);
	drm_connector_cleanup(connector);
}
}


static struct drm_connector_funcs hdmi_connector_funcs = {
static struct drm_connector_funcs hdmi_connector_funcs = {
@@ -2314,8 +2316,8 @@ static void hdmi_unbind(struct device *dev, struct device *master, void *data)
	struct drm_encoder *encoder = display->encoder;
	struct drm_encoder *encoder = display->encoder;
	struct hdmi_context *hdata = display->ctx;
	struct hdmi_context *hdata = display->ctx;


	hdmi_connector_destroy(&hdata->connector);
	encoder->funcs->destroy(encoder);
	encoder->funcs->destroy(encoder);
	drm_connector_cleanup(&hdata->connector);
}
}


static const struct component_ops hdmi_component_ops = {
static const struct component_ops hdmi_component_ops = {