mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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:
parent
8bcf1b75d2
commit
eed5d30c55
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue