summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-14 05:50:20 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-18 15:24:07 +0000
commit4af4e7f06eddad71f86eda3e401967e79d3a9ddb (patch)
tree568f515b03d889441084381559068b9d0b709550 /src/soc/intel/apollolake
parent28dc7dce83131cdd54cad5b338af2f4b89d8969b (diff)
downloadcoreboot-4af4e7f06eddad71f86eda3e401967e79d3a9ddb.tar.xz
soc/intel: Fix invalid use of 'static'
Just keep the variables on the stack. Change-Id: I36b29d8fb7dac159b29609033cba450bea9adf77 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34326 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r--src/soc/intel/apollolake/chip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 3c4bf968e9..361e6a417e 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -294,7 +294,7 @@ static void pcie_override_devicetree_after_silicon_init(void)
/* Configure package power limits */
static void set_power_limits(void)
{
- static struct soc_intel_apollolake_config *cfg;
+ struct soc_intel_apollolake_config *cfg;
msr_t rapl_msr_reg, limit;
uint32_t power_unit;
uint32_t tdp, min_power, max_power;
@@ -361,7 +361,7 @@ static void set_power_limits(void)
/* Overwrites the SCI IRQ if another IRQ number is given by device tree. */
static void set_sci_irq(void)
{
- static struct soc_intel_apollolake_config *cfg;
+ struct soc_intel_apollolake_config *cfg;
uint32_t scis;
cfg = config_of_path(SA_DEVFN_ROOT);
@@ -666,7 +666,7 @@ void __weak mainboard_devtree_update(struct device *dev)
void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
{
FSP_S_CONFIG *silconfig = &silupd->FspsConfig;
- static struct soc_intel_apollolake_config *cfg;
+ struct soc_intel_apollolake_config *cfg;
struct device *dev;
/* Load VBT before devicetree-specific config. */