From ff153cc83d80b433e8d4b1eac729d1bdd8e751ef Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 5 Dec 2019 16:08:24 -0800 Subject: [PATCH] qcacmn: Add kernel version check for set_wake_up_idle set_wake_up_idle together with PF_WAKE_UP_IDLE is removed from kernel 5.4 and hence kernel version check to avoid compilation issues with 5.4 kernel. Change-Id: If44e275eed1d639d90fc7fb4c93a5a2386ffba15 CRs-Fixed: 2580955 --- qdf/linux/src/qdf_threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qdf/linux/src/qdf_threads.c b/qdf/linux/src/qdf_threads.c index b589b99046e0..1cab9b1317cb 100644 --- a/qdf/linux/src/qdf_threads.c +++ b/qdf/linux/src/qdf_threads.c @@ -106,7 +106,7 @@ void qdf_busy_wait(uint32_t us_interval) } qdf_export_symbol(qdf_busy_wait); -#ifdef MSM_PLATFORM +#ifdef PF_WAKE_UP_IDLE void qdf_set_wake_up_idle(bool idle) { set_wake_up_idle(idle); @@ -115,7 +115,7 @@ void qdf_set_wake_up_idle(bool idle) void qdf_set_wake_up_idle(bool idle) { } -#endif /* MSM_PLATFORM */ +#endif /* PF_WAKE_UP_IDLE */ qdf_export_symbol(qdf_set_wake_up_idle);