summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/block/chip/chip.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/soc/intel/common/block/chip/chip.c b/src/soc/intel/common/block/chip/chip.c
index 09f2c47c94..f52d242357 100644
--- a/src/soc/intel/common/block/chip/chip.c
+++ b/src/soc/intel/common/block/chip/chip.c
@@ -1,15 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
const struct soc_intel_common_config *chip_get_common_soc_structure(void)
{
- const struct soc_intel_common_config *soc_config;
- const config_t *config;
-
- config = config_of_soc();
- soc_config = &config->common_soc_config;
-
- return soc_config;
+ return &((config_t *)config_of_soc())->common_soc_config;
}