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:
@@ -224,7 +224,7 @@ void soc_irq_settings(FSP_SIL_UPD *params)
|
||||
uint32_t i, intdeventry;
|
||||
u8 irq_config[PCH_MAX_IRQ_CONFIG];
|
||||
const 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);
|
||||
|
||||
/* Get Device Int Count */
|
||||
intdeventry = ARRAY_SIZE(devintconfig);
|
||||
@@ -295,7 +295,7 @@ void soc_irq_settings(FSP_SIL_UPD *params)
|
||||
|
||||
void soc_pch_pirq_init(const struct device *dev)
|
||||
{
|
||||
const config_t *config = dev->chip_info;
|
||||
const config_t *config = config_of(dev);
|
||||
uint8_t pch_interrupt_routing[MAX_PXRC_CONFIG];
|
||||
struct device *irq_dev;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user