soc/intel: Use config_of()
Change-Id: I0727a6b327410197cf32f598d1312737744386b3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34328 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: David Guckian
This commit is contained in:
@ -93,7 +93,7 @@ struct chip_operations soc_intel_skylake_ops = {
|
||||
void soc_silicon_init_params(SILICON_INIT_UPD *params)
|
||||
{
|
||||
struct device *dev = pcidev_path_on_root(PCH_DEVFN_LPC);
|
||||
const struct soc_intel_skylake_config *config = dev->chip_info;
|
||||
const struct soc_intel_skylake_config *config = config_of(dev);
|
||||
int i;
|
||||
|
||||
memcpy(params->SerialIoDevMode, config->SerialIoDevMode,
|
||||
|
Reference in New Issue
Block a user