summaryrefslogtreecommitdiffstats
path: root/drivers/pci/p2pdma.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-10-28 17:10:17 +0200
committerDan Williams <dan.j.williams@intel.com>2021-12-04 21:46:09 +0100
commitb80892ca022e9eb484771a66eb68e12364695a2a (patch)
treecf885643ff4806d0abacd90d2572a25621eefe80 /drivers/pci/p2pdma.c
parentfsdax: don't require CONFIG_BLOCK (diff)
downloadlinux-b80892ca022e9eb484771a66eb68e12364695a2a.tar.xz
linux-b80892ca022e9eb484771a66eb68e12364695a2a.zip
memremap: remove support for external pgmap refcounts
No driver is left using the external pgmap refcount, so remove the code to support it. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://lore.kernel.org/r/20211028151017.50234-1-hch@lst.de Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/pci/p2pdma.c')
-rw-r--r--drivers/pci/p2pdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c
index 8d47cb7218d1..454d5f6f16ff 100644
--- a/drivers/pci/p2pdma.c
+++ b/drivers/pci/p2pdma.c
@@ -219,7 +219,7 @@ int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size,
error = gen_pool_add_owner(p2pdma->pool, (unsigned long)addr,
pci_bus_address(pdev, bar) + offset,
range_len(&pgmap->range), dev_to_node(&pdev->dev),
- pgmap->ref);
+ &pgmap->ref);
if (error)
goto pages_free;