diff options
| author | Xi Pardee <xi.pardee@intel.com> | 2023-06-13 15:53:41 -0700 |
|---|---|---|
| committer | Hans de Goede <hdegoede@redhat.com> | 2023-06-20 12:51:08 +0200 |
| commit | 804951203aa541ad6720c9726c173d18aeb3ab6b (patch) | |
| tree | 0d57d9114d71599e612a5898b4ee8ab0cb569850 /drivers/platform/x86/intel/pmc/icl.c | |
| parent | 9682cfd1973d01e43c2764c662e6d3291ddf770d (diff) | |
platform/x86:intel/pmc: Combine core_init() and core_configure()
Combine core_init() and core_configure() functions to have a
cleaner setup for platforms.
Signed-off-by: Xi Pardee <xi.pardee@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230613225347.2720665-3-rajvi.jingar@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/icl.c')
| -rw-r--r-- | drivers/platform/x86/intel/pmc/icl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/pmc/icl.c b/drivers/platform/x86/intel/pmc/icl.c index 2f11b1a6daeb..a671d7e86431 100644 --- a/drivers/platform/x86/intel/pmc/icl.c +++ b/drivers/platform/x86/intel/pmc/icl.c @@ -50,7 +50,8 @@ const struct pmc_reg_map icl_reg_map = { .etr3_offset = ETR3_OFFSET, }; -void icl_core_init(struct pmc_dev *pmcdev) +int icl_core_init(struct pmc_dev *pmcdev) { pmcdev->map = &icl_reg_map; + return get_primary_reg_base(pmcdev); } |