drm/tegra: Fix build for Linux v5.19

Upstream Linux commits da68386d9edb ("drm: Rename dp/ to display/") and
644edf52b630 ("drm/display: Move SCDC helpers into display-helper
library") moved some of the DRM headers and this is causing the out of
tree Tegra DRM driver build to fail with Linux v5.19. Fix this by
correcting the include paths for Linux v5.19.

Bug 3680147

Change-Id: Ic9b7a9d16da11e487ace4d09ffbff6ae4466e002
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2728509
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Jon Hunter
2022-06-14 12:04:41 +01:00
committed by Laxman Dewangan
parent c88d7b49ed
commit 9734cc0d92
3 changed files with 13 additions and 3 deletions

View File

@@ -19,14 +19,20 @@
#include <drm/drm_atomic_helper.h>
#include <drm/drm_debugfs.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)
#include <drm/display/drm_dp_helper.h>
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
#include <drm/dp/drm_dp_helper.h>
#else
#include <drm/drm_dp_helper.h>
#endif
#include <drm/drm_file.h>
#include <drm/drm_panel.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)
#include <drm/display/drm_scdc_helper.h>
#else
#include <drm/drm_scdc_helper.h>
#endif
#include <drm/drm_simple_kms_helper.h>
#include "dc.h"