diff options
Diffstat (limited to 'src/soc/intel/jasperlake/chip.c')
-rw-r--r-- | src/soc/intel/jasperlake/chip.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/intel/jasperlake/chip.c b/src/soc/intel/jasperlake/chip.c index ea29fd8b43..a8e3c88128 100644 --- a/src/soc/intel/jasperlake/chip.c +++ b/src/soc/intel/jasperlake/chip.c @@ -111,11 +111,9 @@ static void soc_fill_gpio_pm_configuration(void) const config_t *config = config_of_soc(); if (config->gpio_override_pm) - memcpy(value, config->gpio_pm, sizeof(uint8_t) * - TOTAL_GPIO_COMM); + memcpy(value, config->gpio_pm, sizeof(value)); else - memset(value, MISCCFG_GPIO_PM_CONFIG_BITS, sizeof(uint8_t) * - TOTAL_GPIO_COMM); + memset(value, MISCCFG_GPIO_PM_CONFIG_BITS, sizeof(value)); gpio_pm_configure(value, TOTAL_GPIO_COMM); } |