diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-09-28 13:47:58 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-10-02 11:21:27 +0000 |
commit | 459f4934867a74e71868d3ea55f637782fd2f8cd (patch) | |
tree | c0121a5431fc509e48172b8f7d17d451ea8d9567 /src/soc/intel/baytrail | |
parent | d5f645c6cde230004ee5af6c62d451d1329928e9 (diff) |
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>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35670
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/baytrail')
-rw-r--r-- | src/soc/intel/baytrail/romstage/pmc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/soc/intel/baytrail/romstage/pmc.c b/src/soc/intel/baytrail/romstage/pmc.c index 882edf0a60..2eb3846c4f 100644 --- a/src/soc/intel/baytrail/romstage/pmc.c +++ b/src/soc/intel/baytrail/romstage/pmc.c @@ -41,13 +41,11 @@ void punit_init(void) { 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. */ |