From: Christophe JAILLET Date: Tue, 14 Sep 2021 08:33:20 +0000 (+0200) Subject: s390/ism: switch from 'pci_' to 'dma_' API X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a1ac1b6e4137f5bb5cbb4a79456193c9ed1127d4;p=linux.git s390/ism: switch from 'pci_' to 'dma_' API The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below. @@ expression e1, e2; @@ - pci_set_dma_mask(e1, e2) + dma_set_mask(&e1->dev, e2) Signed-off-by: Christophe JAILLET Signed-off-by: Karsten Graul Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/ism_drv.c b/drivers/s390/net/ism_drv.c index 26cc943d20340..5f7e28de8b150 100644 --- a/drivers/s390/net/ism_drv.c +++ b/drivers/s390/net/ism_drv.c @@ -555,7 +555,7 @@ static int ism_probe(struct pci_dev *pdev, const struct pci_device_id *id) if (ret) goto err_disable; - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); if (ret) goto err_resource;