Skip to content

Commit 362ed0a

Browse files
committed
platform/x86:intel/pmc: Remove unneeded io operations
JIRA: https://issues.redhat.com/browse/RHEL-110838 commit 8c173c3 Author: Xi Pardee <xi.pardee@linux.intel.com> Date: Wed Apr 9 12:10:48 2025 -0700 platform/x86:intel/pmc: Remove unneeded io operations Remove ioremap and iounmap operations that are not needed. ioremap and iounmap operations are handled by the caller of the pmc_add_pmt function. Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com> Link: https://lore.kernel.org/r/20250409191056.15434-7-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> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 8444396 commit 362ed0a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/platform/x86/intel/pmc/ssram_telemetry.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ pmc_add_pmt(struct pmc_dev *pmcdev, u64 ssram_base, void __iomem *ssram)
3636
u32 dvsec_offset;
3737
u32 table, hdr;
3838

39-
ssram = ioremap(ssram_base, SSRAM_HDR_SIZE);
40-
if (!ssram)
41-
return;
42-
4339
dvsec_offset = readl(ssram + SSRAM_DVSEC_OFFSET);
44-
iounmap(ssram);
45-
4640
dvsec = ioremap(ssram_base + dvsec_offset, SSRAM_DVSEC_SIZE);
4741
if (!dvsec)
4842
return;

0 commit comments

Comments
 (0)