Răsfoiți Sursa

msm: ipa: use qcom #defines from qcom-iommu-util.h

Internal qcom #defines have been moved to  qcom-iommu-util.h.
Make changes to use the new header file.

Change-Id: I594ad0ef79580f618fc4f33f14cdc8ef1786577c
Signed-off-by: Chaitanya Pratapa <[email protected]>
Chaitanya Pratapa 4 ani în urmă
părinte
comite
11dcec93e1
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      drivers/platform/msm/ipa/ipa_v3/ipa_i.h

+ 5 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_i.h

@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
  */
 
 #ifndef _IPA3_I_H_
@@ -20,6 +20,10 @@
 #include <linux/ipa.h>
 #include <linux/ipa_usb.h>
 #include <linux/iommu.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0))
+#include <linux/qcom-iommu-util.h>
+#endif
 #include <linux/platform_device.h>
 #include <linux/firmware.h>
 #include "ipa_qmi_service.h"