diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-10-28 16:38:15 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-10-28 16:38:15 -0700 |
commit | 4cce3390c998600f6648e075e475cf8f6dd8cebe (patch) | |
tree | 2b800e2e2d890e98db792ca67590e65d22384926 /drivers/infiniband/core/uverbs_main.c | |
parent | a4da0628efd788eb199dd9df225e296035ec2539 (diff) | |
download | op-kernel-dev-4cce3390c998600f6648e075e475cf8f6dd8cebe.zip op-kernel-dev-4cce3390c998600f6648e075e475cf8f6dd8cebe.tar.gz |
[IB] fix up class_device_create() calls
Fix class_device_create() calls to match the new prototype which
takes a parent device pointer.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_main.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index ac08d2c..0eb38f4 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c @@ -757,7 +757,8 @@ static void ib_uverbs_add_one(struct ib_device *device) if (cdev_add(uverbs_dev->dev, IB_UVERBS_BASE_DEV + uverbs_dev->devnum, 1)) goto err_cdev; - uverbs_dev->class_dev = class_device_create(uverbs_class, uverbs_dev->dev->dev, + uverbs_dev->class_dev = class_device_create(uverbs_class, NULL, + uverbs_dev->dev->dev, device->dma_device, "uverbs%d", uverbs_dev->devnum); if (IS_ERR(uverbs_dev->class_dev)) |