]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86:intel/pmc: Remove unneeded io operations
authorXi Pardee <xi.pardee@linux.intel.com>
Wed, 9 Apr 2025 19:10:48 +0000 (12:10 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 11 Apr 2025 12:26:09 +0000 (15:26 +0300)
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>
drivers/platform/x86/intel/pmc/ssram_telemetry.c

index 10ead4398a68ad667fea5f4b4df991ba4c7bb724..7b8443092b20876b79bce839aaeff0b5a897ea6b 100644 (file)
@@ -36,13 +36,7 @@ pmc_add_pmt(struct pmc_dev *pmcdev, u64 ssram_base, void __iomem *ssram)
        u32 dvsec_offset;
        u32 table, hdr;
 
-       ssram = ioremap(ssram_base, SSRAM_HDR_SIZE);
-       if (!ssram)
-               return;
-
        dvsec_offset = readl(ssram + SSRAM_DVSEC_OFFSET);
-       iounmap(ssram);
-
        dvsec = ioremap(ssram_base + dvsec_offset, SSRAM_DVSEC_SIZE);
        if (!dvsec)
                return;