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

Commit 33856f4b authored by Vevek Venkatesan's avatar Vevek Venkatesan Committed by nshrivas
Browse files

qcacmn: Use IS_ENABLED for the definition of kernel module

Add support in code to use IS_ENABLED, if CONFIG_ARM_SMMU
config as kernel module.

Change-Id: I64c1e0c7918d520ed36a7a9e22fdf39f66e1c150
CRs-Fixed: 2701645
parent b0880953
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@
#endif /* __KERNEL__ */
#include <qdf_status.h>

#ifdef CONFIG_ARM_SMMU
#if IS_ENABLED(CONFIG_ARM_SMMU)
#include <pld_common.h>
#ifdef ENABLE_SMMU_S1_TRANSLATION
#include <asm/dma-iommu.h>
@@ -220,7 +220,7 @@ static inline bool __qdf_mem_smmu_s1_enabled(qdf_device_t osdev)
	return osdev->smmu_s1_enabled;
}

#if defined(CONFIG_ARM_SMMU) && defined(ENABLE_SMMU_S1_TRANSLATION)
#if IS_ENABLED(CONFIG_ARM_SMMU) && defined(ENABLE_SMMU_S1_TRANSLATION)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
/**
 * __qdf_dev_get_domain() - get iommu domain from osdev