diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-20 16:04:15 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 12:23:35 -0500 |
commit | 91f734b4f3085a8758ac58237afe8a3de82cc96a (patch) | |
tree | 71613b24697d36cf7328f3fa827b363b1c19a960 | |
parent | 1e35a0880fb80834a973b51a84c9657208ec0fad (diff) |
IB/cxgb3: Set dev.parent instead of dma_device
Prepare for removal of ib_device.dma_device.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Steve Wise <swise@chelsio.com>
Acked-by: Steve Wise <swise@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index 9d5fe1853da4..8db71dcb4599 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c | |||
@@ -1401,7 +1401,7 @@ int iwch_register_device(struct iwch_dev *dev) | |||
1401 | memcpy(dev->ibdev.node_desc, IWCH_NODE_DESC, sizeof(IWCH_NODE_DESC)); | 1401 | memcpy(dev->ibdev.node_desc, IWCH_NODE_DESC, sizeof(IWCH_NODE_DESC)); |
1402 | dev->ibdev.phys_port_cnt = dev->rdev.port_info.nports; | 1402 | dev->ibdev.phys_port_cnt = dev->rdev.port_info.nports; |
1403 | dev->ibdev.num_comp_vectors = 1; | 1403 | dev->ibdev.num_comp_vectors = 1; |
1404 | dev->ibdev.dma_device = &(dev->rdev.rnic_info.pdev->dev); | 1404 | dev->ibdev.dev.parent = &dev->rdev.rnic_info.pdev->dev; |
1405 | dev->ibdev.query_device = iwch_query_device; | 1405 | dev->ibdev.query_device = iwch_query_device; |
1406 | dev->ibdev.query_port = iwch_query_port; | 1406 | dev->ibdev.query_port = iwch_query_port; |
1407 | dev->ibdev.query_pkey = iwch_query_pkey; | 1407 | dev->ibdev.query_pkey = iwch_query_pkey; |