Commit 846a7ae1 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Chun-Kuang Hu

drm/mediatek: mtk_dpi: Switch to devm_drm_of_get_bridge()

Function drm_of_find_panel_or_bridge() is marked as deprecated: since
the usage of that in this driver exactly corresponds to the new function
devm_drm_of_get_bridge(), switch to it.
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarFei Shao <fshao@chromium.org>
Reviewed-by: default avatarCK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230726082245.550929-4-angelogioacchino.delregno@collabora.com/Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent be471406
...@@ -1063,10 +1063,10 @@ static int mtk_dpi_probe(struct platform_device *pdev) ...@@ -1063,10 +1063,10 @@ static int mtk_dpi_probe(struct platform_device *pdev)
if (dpi->irq <= 0) if (dpi->irq <= 0)
return -EINVAL; return -EINVAL;
ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, dpi->next_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 0, 0);
NULL, &dpi->next_bridge); if (IS_ERR(dpi->next_bridge))
if (ret) return dev_err_probe(dev, PTR_ERR(dpi->next_bridge),
return ret; "Failed to get bridge\n");
dev_info(dev, "Found bridge node: %pOF\n", dpi->next_bridge->of_node); dev_info(dev, "Found bridge node: %pOF\n", dpi->next_bridge->of_node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment