diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-21 00:04:20 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 20:23:35 +0300 |
commit | d66c88a8fcf7267108eabdb7c975cc85707216f7 (patch) | |
tree | 0e348b3e862e97ca8de39a8afe8e862a7b985f3f /drivers/infiniband/hw/mlx4/main.c | |
parent | f2296adccfe973fbc326ed9b2fe55d56e206e3d5 (diff) | |
download | linux-d66c88a8fcf7267108eabdb7c975cc85707216f7.tar.xz |
IB/mlx4: Switch from dma_device to dev.parent
Prepare for removal of ib_device.dma_device.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 7031a8dd4d14..369d254bafeb 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2625,7 +2625,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) ibdev->ib_dev.phys_port_cnt = mlx4_is_bonded(dev) ? 1 : ibdev->num_ports; ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; - ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; + ibdev->ib_dev.dev.parent = &dev->persist->pdev->dev; ibdev->ib_dev.get_netdev = mlx4_ib_get_netdev; ibdev->ib_dev.add_gid = mlx4_ib_add_gid; ibdev->ib_dev.del_gid = mlx4_ib_del_gid; |