PCI/P2PDMA: Fix missing check for dma_virt_ops
authorLogan Gunthorpe <logang@deltatee.com>
Tue, 2 Jul 2019 17:35:44 +0000 (11:35 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Jul 2019 23:35:15 +0000 (18:35 -0500)
commit9c002bb66f5bd8b8f470926489a115b7f486f501
tree335141185d92d7c56eed6cff659ac883a75d6981
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
PCI/P2PDMA: Fix missing check for dma_virt_ops

Drivers that use dma_virt_ops were meant to be rejected when testing
compatibility for P2PDMA.

This check got inadvertently dropped in one of the later versions of the
original patchset, so add it back.

Fixes: 52916982af48 ("PCI/P2PDMA: Support peer-to-peer memory")
Link: https://lore.kernel.org/r/20190702173544.21950-1-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/p2pdma.c