diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-21 00:04:14 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 20:23:35 +0300 |
commit | 1e35a0880fb80834a973b51a84c9657208ec0fad (patch) | |
tree | b8be4b051b73d2b4b0958b78c06605d2d5eaa3f4 /drivers/infiniband/core/user_mad.c | |
parent | 97a9ea848016fef86e4a42dc6a65f4384eed32cd (diff) | |
download | linux-1e35a0880fb80834a973b51a84c9657208ec0fad.tar.xz |
IB/core: Use dev.parent instead of dma_device
Prepare for removal of ib_device.dma_device.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/user_mad.c')
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 249b403b43a4..aca7ff7abedc 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c @@ -1188,7 +1188,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, if (cdev_add(&port->cdev, base, 1)) goto err_cdev; - port->dev = device_create(umad_class, device->dma_device, + port->dev = device_create(umad_class, device->dev.parent, port->cdev.dev, port, "umad%d", port->dev_num); if (IS_ERR(port->dev)) @@ -1207,7 +1207,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, if (cdev_add(&port->sm_cdev, base, 1)) goto err_sm_cdev; - port->sm_dev = device_create(umad_class, device->dma_device, + port->sm_dev = device_create(umad_class, device->dev.parent, port->sm_cdev.dev, port, "issm%d", port->dev_num); if (IS_ERR(port->sm_dev)) |