diff options
Diffstat (limited to 'drivers/platform/x86/intel/pmc/mtl.c')
-rw-r--r-- | drivers/platform/x86/intel/pmc/mtl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel/pmc/mtl.c b/drivers/platform/x86/intel/pmc/mtl.c index a2fc96f9ef11..69df6d7fee56 100644 --- a/drivers/platform/x86/intel/pmc/mtl.c +++ b/drivers/platform/x86/intel/pmc/mtl.c @@ -508,15 +508,16 @@ static int mtl_resume(struct pmc_dev *pmcdev) int mtl_core_init(struct pmc_dev *pmcdev) { + struct pmc *pmc = pmcdev->pmcs[PMC_IDX_SOC]; int ret; - pmcdev->map = &mtl_socm_reg_map; + pmc->map = &mtl_socm_reg_map; mtl_d3_fixup(); pmcdev->resume = mtl_resume; - ret = get_primary_reg_base(pmcdev); + ret = get_primary_reg_base(pmc); if (ret) return ret; |