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

Commit d6a2d16b authored by Peter Chen's avatar Peter Chen Committed by Sean Paul
Browse files

gpu: drm: exynos_hdmi: add missing of_node_put after calling of_parse_phandle



of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent 2ab9f587
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1820,6 +1820,7 @@ static int hdmi_probe(struct platform_device *pdev)
		DRM_ERROR("Failed to find ddc node in device tree\n");
		DRM_ERROR("Failed to find ddc node in device tree\n");
		return -ENODEV;
		return -ENODEV;
	}
	}
	of_node_put(dev->of_node);


out_get_ddc_adpt:
out_get_ddc_adpt:
	hdata->ddc_adpt = of_find_i2c_adapter_by_node(ddc_node);
	hdata->ddc_adpt = of_find_i2c_adapter_by_node(ddc_node);
@@ -1838,6 +1839,7 @@ static int hdmi_probe(struct platform_device *pdev)
		ret = -ENODEV;
		ret = -ENODEV;
		goto err_ddc;
		goto err_ddc;
	}
	}
	of_node_put(dev->of_node);


out_get_phy_port:
out_get_phy_port:
	if (hdata->drv_data->is_apb_phy) {
	if (hdata->drv_data->is_apb_phy) {