Commit 46333e37 authored by David Woodhouse's avatar David Woodhouse

iommu/vt-d: Remove to_pci_dev() in intel_map_page()

It might not be...
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 7207d8f9
......@@ -3023,7 +3023,7 @@ static dma_addr_t intel_map_page(struct device *dev, struct page *page,
struct dma_attrs *attrs)
{
return __intel_map_single(dev, page_to_phys(page) + offset, size,
dir, to_pci_dev(dev)->dma_mask);
dir, *dev->dma_mask);
}
static void flush_unmaps(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment