aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/imx/imx-hdmi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imx/imx-hdmi.c b/drivers/gpu/drm/imx/imx-hdmi.c
index 3f96a5e6670d..3118dde3ea62 100644
--- a/drivers/gpu/drm/imx/imx-hdmi.c
+++ b/drivers/gpu/drm/imx/imx-hdmi.c
@@ -1611,10 +1611,12 @@ static int imx_hdmi_bind(struct device *dev, struct device *master, void *data)
1611 ddc_node = of_parse_phandle(np, "ddc-i2c-bus", 0); 1611 ddc_node = of_parse_phandle(np, "ddc-i2c-bus", 0);
1612 if (ddc_node) { 1612 if (ddc_node) {
1613 hdmi->ddc = of_find_i2c_adapter_by_node(ddc_node); 1613 hdmi->ddc = of_find_i2c_adapter_by_node(ddc_node);
1614 if (!hdmi->ddc) 1614 of_node_put(ddc_node);
1615 if (!hdmi->ddc) {
1615 dev_dbg(hdmi->dev, "failed to read ddc node\n"); 1616 dev_dbg(hdmi->dev, "failed to read ddc node\n");
1617 return -EPROBE_DEFER;
1618 }
1616 1619
1617 of_node_put(ddc_node);
1618 } else { 1620 } else {
1619 dev_dbg(hdmi->dev, "no ddc property found\n"); 1621 dev_dbg(hdmi->dev, "no ddc property found\n");
1620 } 1622 }