Skip to content

Commit

Permalink
IB/rxe: Switch from dma_device to dev.parent
Browse files Browse the repository at this point in the history
Prepare for removal of ib_device.dma_device.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Bart Van Assche authored and Doug Ledford committed Jan 24, 2017
1 parent a62ef9a commit 85e9f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/infiniband/sw/rxe/rxe_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ static int rxe_query_pkey(struct ib_device *device,
struct rxe_port *port;

if (unlikely(port_num != 1)) {
dev_warn(device->dma_device, "invalid port_num = %d\n",
dev_warn(device->dev.parent, "invalid port_num = %d\n",
port_num);
goto err1;
}

port = &rxe->port;

if (unlikely(index >= port->attr.pkey_tbl_len)) {
dev_warn(device->dma_device, "invalid index = %d\n",
dev_warn(device->dev.parent, "invalid index = %d\n",
index);
goto err1;
}
Expand Down Expand Up @@ -1232,7 +1232,7 @@ int rxe_register_device(struct rxe_dev *rxe)
dev->node_type = RDMA_NODE_IB_CA;
dev->phys_port_cnt = 1;
dev->num_comp_vectors = RXE_NUM_COMP_VECTORS;
dev->dma_device = rxe_dma_device(rxe);
dev->dev.parent = rxe_dma_device(rxe);
dev->local_dma_lkey = 0;
dev->node_guid = rxe_node_guid(rxe);
dev->dma_ops = &rxe_dma_mapping_ops;
Expand Down

0 comments on commit 85e9f1d

Please sign in to comment.