drm/msm: avoid loading gpu components if qcom_kgsl present

Avoid loading gpu components from drm driver if qcom_kgsl
driver present.

Change-Id: I74c65634ce9260fba5bb871b3a9854d2c8173f4e
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
This commit is contained in:
Camus Wong 2017-07-27 15:30:06 -04:00 committed by Gerrit - the friendly Code Review server
parent bd20893138
commit c38bb7f088

View file

@ -2146,7 +2146,9 @@ static int msm_pdev_probe(struct platform_device *pdev)
#ifdef CONFIG_OF
add_components(&pdev->dev, &match, "connectors");
#ifndef CONFIG_QCOM_KGSL
add_components(&pdev->dev, &match, "gpus");
#endif
#else
/* For non-DT case, it kinda sucks. We don't actually have a way
* to know whether or not we are waiting for certain devices (or if