IB/qedr: Switch from dma_device to dev.parent
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 20 Jan 2017 21:04:25 +0000 (13:04 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 17:23:35 +0000 (12:23 -0500)
Prepare for removal of ib_device.dma_device.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Ram Amrani <Ram.Amrani@cavium.com>
Cc: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/main.c

index 7b74d09a8217ca0f30de8d5065bb4b829100c56f..908c0b00ffdbfc6f1e3b0aa7ae59da3fa8852b78 100644 (file)
@@ -170,7 +170,7 @@ static int qedr_register_device(struct qedr_dev *dev)
        dev->ibdev.get_port_immutable = qedr_port_immutable;
        dev->ibdev.get_netdev = qedr_get_netdev;
 
-       dev->ibdev.dma_device = &dev->pdev->dev;
+       dev->ibdev.dev.parent = &dev->pdev->dev;
 
        dev->ibdev.get_link_layer = qedr_link_layer;
        dev->ibdev.get_dev_fw_str = qedr_get_dev_fw_str;