Browse Source

msm: camera: smmu: Update header include for SMMU API's

Due to restructuring of memory API's new header files contain old
DMA_ATTR macro's.

CRs-Fixed: 2835738
Change-Id: If2b13866c41dcf7b19b47e40fc2d3801c2161816
Signed-off-by: Karthik Jayakumar <[email protected]>
Karthik Jayakumar 4 years ago
parent
commit
4d74da7de3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      drivers/cam_utils/cam_compat.h

+ 6 - 0
drivers/cam_utils/cam_compat.h

@@ -35,6 +35,12 @@
 
 #endif
 
+#if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE
+
+#include <linux/qcom-dma-mapping.h>
+
+#endif
+
 struct cam_fw_alloc_info {
 	struct device *fw_dev;
 	void          *fw_kva;