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
This commit is contained in:
Vevek Venkatesan 2020-06-02 20:03:16 +05:30 • committed by nshrivas
commit eed5d30c55

View file

@ -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
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
@ -222,7 +222,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