From: Bart Van Assche Date: Fri, 20 Jan 2017 21:04:28 +0000 (-0800) Subject: IB/vmw_pvrdma: Switch from dma_device to dev.parent X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a62ef9a7d2542fff44f9ca68a730e3d1677b7040;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git IB/vmw_pvrdma: Switch from dma_device to dev.parent Prepare for removal of ib_device.dma_device. Signed-off-by: Bart Van Assche Cc: Adit Ranadive Cc: VMware PV-Drivers Acked-by: Adit Ranadive Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c index 231a1ce1f4be..214793d51409 100644 --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c @@ -172,7 +172,7 @@ static int pvrdma_register_device(struct pvrdma_dev *dev) dev->flags = 0; dev->ib_dev.owner = THIS_MODULE; dev->ib_dev.num_comp_vectors = 1; - dev->ib_dev.dma_device = &dev->pdev->dev; + dev->ib_dev.dev.parent = &dev->pdev->dev; dev->ib_dev.uverbs_abi_ver = PVRDMA_UVERBS_ABI_VERSION; dev->ib_dev.uverbs_cmd_mask = (1ull << IB_USER_VERBS_CMD_GET_CONTEXT) |