diff mbox

[v3,28/37] IB/vmw_pvrdma: Switch from dma_device to dev.parent

Message ID 20170120210437.26389-29-bart.vanassche@sandisk.com (mailing list archive)
State Accepted
Headers show

Commit Message

Bart Van Assche Jan. 20, 2017, 9:04 p.m. UTC
Prepare for removal of ib_device.dma_device.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Adit Ranadive <aditr@vmware.com>
Cc: VMware PV-Drivers <pv-drivers@vmware.com>
---
 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Adit Ranadive Jan. 20, 2017, 9:54 p.m. UTC | #1
On Fri, Jan 20, 2017 at 1:04:28PM -0800, Bart Van Assche wrote:
> Prepare for removal of ib_device.dma_device.
> 
> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
> Cc: Adit Ranadive <aditr@vmware.com>
> Cc: VMware PV-Drivers <pv-drivers@vmware.com>
> ---
>  drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)		|

Acked-by: Adit Ranadive <aditr@vmware.com>

Thanks,
Adit

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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)		|