diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-20 13:04:14 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 12:23:35 -0500 |
commit | 1e35a0880fb80834a973b51a84c9657208ec0fad (patch) | |
tree | b8be4b051b73d2b4b0958b78c06605d2d5eaa3f4 /drivers/infiniband/core/ucm.c | |
parent | IB/core: Initialize ib_device.dev.parent earlier (diff) | |
download | linux-dev-1e35a0880fb80834a973b51a84c9657208ec0fad.tar.xz linux-dev-1e35a0880fb80834a973b51a84c9657208ec0fad.zip |
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/ucm.c')
-rw-r--r-- | drivers/infiniband/core/ucm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c index e0a995b85a2d..cc0d51fb06e3 100644 --- a/drivers/infiniband/core/ucm.c +++ b/drivers/infiniband/core/ucm.c @@ -1290,7 +1290,7 @@ static void ib_ucm_add_one(struct ib_device *device) goto err; ucm_dev->dev.class = &cm_class; - ucm_dev->dev.parent = device->dma_device; + ucm_dev->dev.parent = device->dev.parent; ucm_dev->dev.devt = ucm_dev->cdev.dev; ucm_dev->dev.release = ib_ucm_release_dev; dev_set_name(&ucm_dev->dev, "ucm%d", ucm_dev->devnum); |