Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35670 )
Change subject: intel/baytrail: Replace config_of(dev) with config_of_soc() ......................................................................
intel/baytrail: Replace config_of(dev) with config_of_soc()
The function does not otherwise need dev.
Change-Id: I75d3283b537151258ed48f7e4e0991dff53a803c Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/soc/intel/baytrail/romstage/pmc.c 1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/35670/1
diff --git a/src/soc/intel/baytrail/romstage/pmc.c b/src/soc/intel/baytrail/romstage/pmc.c index 882edf0..2eb3846 100644 --- a/src/soc/intel/baytrail/romstage/pmc.c +++ b/src/soc/intel/baytrail/romstage/pmc.c @@ -41,13 +41,11 @@ { uint32_t reg; uint8_t rid; - const struct device *dev; const struct soc_intel_baytrail_config *cfg = NULL;
rid = pci_read_config8(IOSF_PCI_DEV, REVID); - dev = pcidev_on_root(SOC_DEV, SOC_FUNC);
- cfg = config_of(dev); + cfg = config_of_soc();
reg = iosf_punit_read(SB_BIOS_CONFIG); /* Write bits 17:16 of SB_BIOS_CONFIG in the PUNIT. */