aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmc/spt.c
diff options
context:
space:
mode:
authorXi Pardee <[email protected]>2025-02-07 22:56:10 +0000
committerIlpo Järvinen <[email protected]>2025-02-10 11:14:48 +0000
commit45fa1a0d4d8759787bf62b49019952e2d56a66f9 (patch)
tree603bef92ee23142f0e282361e49a35277eabda8e /drivers/platform/x86/intel/pmc/spt.c
parentplatform/x86:intel/pmc: Create generic_core_init() for all platforms (diff)
downloadkernel-45fa1a0d4d8759787bf62b49019952e2d56a66f9.tar.gz
kernel-45fa1a0d4d8759787bf62b49019952e2d56a66f9.zip
platform/x86/intel/pmc: Remove simple init functions
Remove simple init functions to avoid duplicate code. Store init function performing architecture specific action in the corresponding pmc_dev_info structure. Replace init function with pmc_dev_info structure in X86_MATCH_VFM() of core.c. Signed-off-by: Xi Pardee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/spt.c')
-rw-r--r--drivers/platform/x86/intel/pmc/spt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/platform/x86/intel/pmc/spt.c b/drivers/platform/x86/intel/pmc/spt.c
index ab5f66fcb0c3..956b2ec1c751 100644
--- a/drivers/platform/x86/intel/pmc/spt.c
+++ b/drivers/platform/x86/intel/pmc/spt.c
@@ -134,11 +134,6 @@ const struct pmc_reg_map spt_reg_map = {
.pm_vric1_offset = SPT_PMC_VRIC1_OFFSET,
};
-static struct pmc_dev_info spt_pmc_dev = {
+struct pmc_dev_info spt_pmc_dev = {
.map = &spt_reg_map,
};
-
-int spt_core_init(struct pmc_dev *pmcdev)
-{
- return generic_core_init(pmcdev, &spt_pmc_dev);
-}