aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_hdmi.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 58de5a430508..2275efe41acd 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -937,17 +937,9 @@ static int hdmi_mode_valid(struct drm_connector *connector,
937 return MODE_OK; 937 return MODE_OK;
938} 938}
939 939
940static struct drm_encoder *hdmi_best_encoder(struct drm_connector *connector)
941{
942 struct hdmi_context *hdata = connector_to_hdmi(connector);
943
944 return &hdata->encoder;
945}
946
947static const struct drm_connector_helper_funcs hdmi_connector_helper_funcs = { 940static const struct drm_connector_helper_funcs hdmi_connector_helper_funcs = {
948 .get_modes = hdmi_get_modes, 941 .get_modes = hdmi_get_modes,
949 .mode_valid = hdmi_mode_valid, 942 .mode_valid = hdmi_mode_valid,
950 .best_encoder = hdmi_best_encoder,
951}; 943};
952 944
953static int hdmi_create_connector(struct drm_encoder *encoder) 945static int hdmi_create_connector(struct drm_encoder *encoder)
@@ -1828,6 +1820,7 @@ static int hdmi_probe(struct platform_device *pdev)
1828 DRM_ERROR("Failed to find ddc node in device tree\n"); 1820 DRM_ERROR("Failed to find ddc node in device tree\n");
1829 return -ENODEV; 1821 return -ENODEV;
1830 } 1822 }
1823 of_node_put(dev->of_node);
1831 1824
1832out_get_ddc_adpt: 1825out_get_ddc_adpt:
1833 hdata->ddc_adpt = of_find_i2c_adapter_by_node(ddc_node); 1826 hdata->ddc_adpt = of_find_i2c_adapter_by_node(ddc_node);
@@ -1846,6 +1839,7 @@ out_get_ddc_adpt:
1846 ret = -ENODEV; 1839 ret = -ENODEV;
1847 goto err_ddc; 1840 goto err_ddc;
1848 } 1841 }
1842 of_node_put(dev->of_node);
1849 1843
1850out_get_phy_port: 1844out_get_phy_port:
1851 if (hdata->drv_data->is_apb_phy) { 1845 if (hdata->drv_data->is_apb_phy) {