aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/pci/pci_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/pci/pci_dma.c')
-rw-r--r--arch/s390/pci/pci_dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c
index f8e69d5bc0a9..a2343c1f6e04 100644
--- a/arch/s390/pci/pci_dma.c
+++ b/arch/s390/pci/pci_dma.c
@@ -263,7 +263,7 @@ static dma_addr_t s390_dma_map_pages(struct device *dev, struct page *page,
263 enum dma_data_direction direction, 263 enum dma_data_direction direction,
264 struct dma_attrs *attrs) 264 struct dma_attrs *attrs)
265{ 265{
266 struct zpci_dev *zdev = get_zdev(container_of(dev, struct pci_dev, dev)); 266 struct zpci_dev *zdev = get_zdev(to_pci_dev(dev));
267 unsigned long nr_pages, iommu_page_index; 267 unsigned long nr_pages, iommu_page_index;
268 unsigned long pa = page_to_phys(page) + offset; 268 unsigned long pa = page_to_phys(page) + offset;
269 int flags = ZPCI_PTE_VALID; 269 int flags = ZPCI_PTE_VALID;
@@ -304,7 +304,7 @@ static void s390_dma_unmap_pages(struct device *dev, dma_addr_t dma_addr,
304 size_t size, enum dma_data_direction direction, 304 size_t size, enum dma_data_direction direction,
305 struct dma_attrs *attrs) 305 struct dma_attrs *attrs)
306{ 306{
307 struct zpci_dev *zdev = get_zdev(container_of(dev, struct pci_dev, dev)); 307 struct zpci_dev *zdev = get_zdev(to_pci_dev(dev));
308 unsigned long iommu_page_index; 308 unsigned long iommu_page_index;
309 int npages; 309 int npages;
310 310
@@ -323,7 +323,7 @@ static void *s390_dma_alloc(struct device *dev, size_t size,
323 dma_addr_t *dma_handle, gfp_t flag, 323 dma_addr_t *dma_handle, gfp_t flag,
324 struct dma_attrs *attrs) 324 struct dma_attrs *attrs)
325{ 325{
326 struct zpci_dev *zdev = get_zdev(container_of(dev, struct pci_dev, dev)); 326 struct zpci_dev *zdev = get_zdev(to_pci_dev(dev));
327 struct page *page; 327 struct page *page;
328 unsigned long pa; 328 unsigned long pa;
329 dma_addr_t map; 329 dma_addr_t map;