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

Commit 802b5e31 authored by Abhijit Kulkarni's avatar Abhijit Kulkarni
Browse files

disp: msm: fix probe deferral logic



msm_drv should be probe deferred until rsc driver
probe is done. OF_POPULATED flag only checks if platform
driver is registered and hence additional condition to
check if driver is attached to this device, is needed.

Change-Id: I070965cc8d3ba3984032ad3704ec86066680eef0
Signed-off-by: default avatarAbhijit Kulkarni <kabhijit@codeaurora.org>
parent 6a5956b3
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -1952,9 +1952,16 @@ static int msm_drm_component_dependency_check(struct device *dev)

		if (of_node_name_eq(node,"qcom,sde_rscc") &&
				of_device_is_available(node) &&
		    !of_node_check_flag(node, OF_POPULATED)) {
			dev_err(dev, "qcom,sde_rscc device not probed yet\n");
				of_node_check_flag(node, OF_POPULATED)) {
			struct platform_device *pdev =
					of_find_device_by_node(node);
			if (!platform_get_drvdata(pdev)) {
				dev_err(dev,
					"qcom,sde_rscc not probed yet\n");
				return -EPROBE_DEFER;
			} else {
				return 0;
			}
		}
	}