Unverified Commit 0dba2ca1 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9807 drm: zynqmp_dpsub: Always register bridge

parents e3cb4359 9a3db6a3
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -256,12 +256,12 @@ static int zynqmp_dpsub_probe(struct platform_device *pdev)
	if (ret)
		goto err_dp;

	drm_bridge_add(dpsub->bridge);

	if (dpsub->dma_enabled) {
		ret = zynqmp_dpsub_drm_init(dpsub);
		if (ret)
			goto err_disp;
	} else {
		drm_bridge_add(dpsub->bridge);
	}

	dev_info(&pdev->dev, "ZynqMP DisplayPort Subsystem driver probed");
@@ -288,9 +288,8 @@ static void zynqmp_dpsub_remove(struct platform_device *pdev)

	if (dpsub->drm)
		zynqmp_dpsub_drm_cleanup(dpsub);
	else
		drm_bridge_remove(dpsub->bridge);

	drm_bridge_remove(dpsub->bridge);
	zynqmp_disp_remove(dpsub);
	zynqmp_dp_remove(dpsub);