mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
41c5c2215e
commit
8c173c39e3
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue