From 7e108a73afa6ab7e1f8dba49fa2ed932481eb7c6 Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Wed, 9 Dec 2020 16:53:57 -0800 Subject: [PATCH] cnss2: Use empty tables for default regulators and clocks Current default regulator and clock tables are for MSM platform only. Use empty tables for non-MSM platforms by default so that proper regulators and clocks can be added later based on platforms. Change-Id: I2705d8ca2a0fde636f346f01e677a762b4cf92b7 Signed-off-by: Yue Ma --- drivers/net/wireless/cnss2/power.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/cnss2/power.c b/drivers/net/wireless/cnss2/power.c index f57925d45588..43ef9e786663 100644 --- a/drivers/net/wireless/cnss2/power.c +++ b/drivers/net/wireless/cnss2/power.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. */ +/* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ #include #include @@ -13,6 +13,7 @@ #include "debug.h" #include "bus.h" +#if IS_ENABLED(CONFIG_ARCH_QCOM) static struct cnss_vreg_cfg cnss_vreg_list[] = { {"vdd-wlan-core", 1300000, 1300000, 0, 0, 0}, {"vdd-wlan-io", 1800000, 1800000, 0, 0, 0}, @@ -34,6 +35,13 @@ static struct cnss_vreg_cfg cnss_vreg_list[] = { static struct cnss_clk_cfg cnss_clk_list[] = { {"rf_clk", 0, 0}, }; +#else +static struct cnss_vreg_cfg cnss_vreg_list[] = { +}; + +static struct cnss_clk_cfg cnss_clk_list[] = { +}; +#endif #define CNSS_VREG_INFO_SIZE ARRAY_SIZE(cnss_vreg_list) #define CNSS_CLK_INFO_SIZE ARRAY_SIZE(cnss_clk_list)