[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230121170420.8681-1-sensor1010@163.com>
Date: Sat, 21 Jan 2023 09:04:20 -0800
From: Lizhe <sensor1010@....com>
To: bhelgaas@...gle.com, tglx@...utronix.de, darwi@...utronix.de,
jgg@...pe.ca, maz@...nel.org
Cc: linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Lizhe <sensor1010@....com>
Subject: [PATCH v1] drivers/msi.c : use devm_ioremap replace ioremap
use devm_ioremap replace ioremap
Signed-off-by: Lizhe <sensor1010@....com>
---
drivers/pci/msi/msi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/msi/msi.c b/drivers/pci/msi/msi.c
index 1f716624ca56..184eca85b88b 100644
--- a/drivers/pci/msi/msi.c
+++ b/drivers/pci/msi/msi.c
@@ -566,7 +566,7 @@ static void __iomem *msix_map_region(struct pci_dev *dev,
table_offset &= PCI_MSIX_TABLE_OFFSET;
phys_addr = pci_resource_start(dev, bir) + table_offset;
- return ioremap(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE);
+ return devm_ioremap(&dev->dev, phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE);
}
/**
--
2.17.1
Powered by blists - more mailing lists