Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xi Pardee and committed by
Ilpo Järvinen
8c173c39 41c5c221

-6
-6
drivers/platform/x86/intel/pmc/ssram_telemetry.c
··· 36 36 u32 dvsec_offset; 37 37 u32 table, hdr; 38 38 39 - ssram = ioremap(ssram_base, SSRAM_HDR_SIZE); 40 - if (!ssram) 41 - return; 42 - 43 39 dvsec_offset = readl(ssram + SSRAM_DVSEC_OFFSET); 44 - iounmap(ssram); 45 - 46 40 dvsec = ioremap(ssram_base + dvsec_offset, SSRAM_DVSEC_SIZE); 47 41 if (!dvsec) 48 42 return;