From 57c9807524e2353367c3a77c26d042ea72a680e7 Mon Sep 17 00:00:00 2001 From: Naman Padhiar Date: Wed, 7 Aug 2019 15:00:06 +0530 Subject: qcacld-3.0: Properly disable thermal mitigation feature Add feature macro check to properly disable thermal mitigation feature from mainline driver. Change-Id: I6996e0cb24124de0a50a562663a987dcfb362241 CRs-Fixed: 2504880 --- core/pld/src/pld_snoc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/pld/src/pld_snoc.c b/core/pld/src/pld_snoc.c index cb3dc8dd2ce9..857224793e8f 100644 --- a/core/pld/src/pld_snoc.c +++ b/core/pld/src/pld_snoc.c @@ -262,6 +262,7 @@ static int pld_snoc_uevent(struct device *dev, return 0; } +#if defined(CONFIG_WLAN_FW_THERMAL_MITIGATION) /** * pld_snoc_set_thermal_state() - Set thermal state for thermal mitigation * @dev: device @@ -288,6 +289,7 @@ static int pld_snoc_set_thermal_state(struct device *dev, return -ENOTSUPP; } +#endif #ifdef MULTI_IF_NAME #define PLD_SNOC_OPS_NAME "pld_snoc_" MULTI_IF_NAME @@ -307,7 +309,9 @@ struct icnss_driver_ops pld_snoc_ops = { .suspend_noirq = pld_snoc_suspend_noirq, .resume_noirq = pld_snoc_resume_noirq, .uevent = pld_snoc_uevent, +#if defined(CONFIG_WLAN_FW_THERMAL_MITIGATION) .set_therm_state = pld_snoc_set_thermal_state, +#endif }; /** -- cgit v1.2.3