summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily Deng <Emily.Deng@amd.com>2020-06-29 18:20:14 +0800
committerGerrit Cr <Gerrit.Cr@amd.com>2020-09-22 11:34:53 -0400
commit5a8ad34a916b07af3aee0504ad30adbef7979f99 (patch)
treecb2345f5ad948974d4cf81143acbfda214b6e1fc
parentb29cd4677d7b29381b851a24cedb6d7cd15f747b (diff)
drm/amdgpu/kcl: Fix centOS passthrough issue
Need to add HAVE_DRIVER_ATOMIC, or it will report some warnings. Change-Id: I7b3e49e660a2fd35ea7083ab659f13cdf04358b7 Signed-off-by: Emily Deng <Emily.Deng@amd.com> Signed-off-by: Victor <Victor.Zhao@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 8652eb2a3c0c..8139c496c3a6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -1602,7 +1602,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)
static struct drm_driver kms_driver = {
.driver_features =
DRIVER_HAVE_IRQ
-#ifdef HAVE_DRM_DEVICE_DRIVER_FEATURES
+#if defined(HAVE_DRIVER_ATOMIC) && defined(HAVE_DRM_DEVICE_DRIVER_FEATURES)
| DRIVER_ATOMIC
#endif /* HAVE_DRM_DEVICE_DRIVER_FEATURES */
#ifdef HAVE_DRM_DRV_DRIVER_IRQ_SHARED