diff --git a/src/soc/intel/common/block/chip/chip.c b/src/soc/intel/common/block/chip/chip.c index f52d242357..29d9f50874 100644 --- a/src/soc/intel/common/block/chip/chip.c +++ b/src/soc/intel/common/block/chip/chip.c @@ -2,7 +2,7 @@ #include -const struct soc_intel_common_config *chip_get_common_soc_structure(void) +struct soc_intel_common_config *chip_get_common_soc_structure(void) { return &((config_t *)config_of_soc())->common_soc_config; } diff --git a/src/soc/intel/common/block/include/intelblocks/cfg.h b/src/soc/intel/common/block/include/intelblocks/cfg.h index 131d70d71c..8563520961 100644 --- a/src/soc/intel/common/block/include/intelblocks/cfg.h +++ b/src/soc/intel/common/block/include/intelblocks/cfg.h @@ -29,6 +29,6 @@ struct soc_intel_common_config { }; /* This function to retrieve soc config structure required by common code */ -const struct soc_intel_common_config *chip_get_common_soc_structure(void); +struct soc_intel_common_config *chip_get_common_soc_structure(void); #endif /* SOC_INTEL_COMMON_BLOCK_CFG_H */