summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/pmc/adl.c
diff options
context:
space:
mode:
authorXi Pardee <xi.pardee@linux.intel.com>2025-02-07 14:56:10 -0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-02-10 13:14:48 +0200
commit45fa1a0d4d8759787bf62b49019952e2d56a66f9 (patch)
tree603bef92ee23142f0e282361e49a35277eabda8e /drivers/platform/x86/intel/pmc/adl.c
parentac6bef0d54014cc010831ec86ac425f482a981ae (diff)
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 <xi.pardee@linux.intel.com> Link: https://lore.kernel.org/r/20250207225615.401235-5-xi.pardee@linux.intel.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/adl.c')
-rw-r--r--drivers/platform/x86/intel/pmc/adl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/platform/x86/intel/pmc/adl.c b/drivers/platform/x86/intel/pmc/adl.c
index ac37f4ece9c7..de361a316d51 100644
--- a/drivers/platform/x86/intel/pmc/adl.c
+++ b/drivers/platform/x86/intel/pmc/adl.c
@@ -311,13 +311,8 @@ const struct pmc_reg_map adl_reg_map = {
.pson_residency_counter_step = TGL_PSON_RES_COUNTER_STEP,
};
-static struct pmc_dev_info adl_pmc_dev = {
+struct pmc_dev_info adl_pmc_dev = {
.map = &adl_reg_map,
.suspend = cnl_suspend,
.resume = cnl_resume,
};
-
-int adl_core_init(struct pmc_dev *pmcdev)
-{
- return generic_core_init(pmcdev, &adl_pmc_dev);
-}