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

Commit 169bf3ab authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm: avoid loading gpu components if qcom_kgsl present



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

Change-Id: Ibd499f55faa973f162e211c250129677c7cc8825
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 2169d619
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1696,6 +1696,13 @@ static const struct of_device_id msm_gpu_match[] = {
	{ },
};

#ifdef CONFIG_QCOM_KGSL
static int add_gpu_components(struct device *dev,
			      struct component_match **matchptr)
{
	return 0;
}
#else
static int add_gpu_components(struct device *dev,
			      struct component_match **matchptr)
{
@@ -1711,6 +1718,7 @@ static int add_gpu_components(struct device *dev,

	return 0;
}
#endif

static int msm_drm_bind(struct device *dev)
{