diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-20 16:04:14 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 12:23:35 -0500 |
commit | 1e35a0880fb80834a973b51a84c9657208ec0fad (patch) | |
tree | b8be4b051b73d2b4b0958b78c06605d2d5eaa3f4 /drivers/infiniband/core/uverbs_main.c | |
parent | 97a9ea848016fef86e4a42dc6a65f4384eed32cd (diff) |
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/uverbs_main.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index b3f95d453fba..e3fb4b1af1ad 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c | |||
@@ -1174,7 +1174,7 @@ static void ib_uverbs_add_one(struct ib_device *device) | |||
1174 | if (cdev_add(&uverbs_dev->cdev, base, 1)) | 1174 | if (cdev_add(&uverbs_dev->cdev, base, 1)) |
1175 | goto err_cdev; | 1175 | goto err_cdev; |
1176 | 1176 | ||
1177 | uverbs_dev->dev = device_create(uverbs_class, device->dma_device, | 1177 | uverbs_dev->dev = device_create(uverbs_class, device->dev.parent, |
1178 | uverbs_dev->cdev.dev, uverbs_dev, | 1178 | uverbs_dev->cdev.dev, uverbs_dev, |
1179 | "uverbs%d", uverbs_dev->devnum); | 1179 | "uverbs%d", uverbs_dev->devnum); |
1180 | if (IS_ERR(uverbs_dev->dev)) | 1180 | if (IS_ERR(uverbs_dev->dev)) |