aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-10-28 19:38:15 -0400
committerRoland Dreier <rolandd@cisco.com>2005-10-28 19:38:15 -0400
commit4cce3390c998600f6648e075e475cf8f6dd8cebe (patch)
tree2b800e2e2d890e98db792ca67590e65d22384926 /drivers/infiniband
parenta4da0628efd788eb199dd9df225e296035ec2539 (diff)
[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')
-rw-r--r--drivers/infiniband/core/user_mad.c4
-rw-r--r--drivers/infiniband/core/uverbs_main.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c
index 9e49816d7282..97128e25f78b 100644
--- a/drivers/infiniband/core/user_mad.c
+++ b/drivers/infiniband/core/user_mad.c
@@ -755,7 +755,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,
755 if (cdev_add(port->dev, base_dev + port->dev_num, 1)) 755 if (cdev_add(port->dev, base_dev + port->dev_num, 1))
756 goto err_cdev; 756 goto err_cdev;
757 757
758 port->class_dev = class_device_create(umad_class, port->dev->dev, 758 port->class_dev = class_device_create(umad_class, NULL, port->dev->dev,
759 device->dma_device, 759 device->dma_device,
760 "umad%d", port->dev_num); 760 "umad%d", port->dev_num);
761 if (IS_ERR(port->class_dev)) 761 if (IS_ERR(port->class_dev))
@@ -775,7 +775,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,
775 if (cdev_add(port->sm_dev, base_dev + port->dev_num + IB_UMAD_MAX_PORTS, 1)) 775 if (cdev_add(port->sm_dev, base_dev + port->dev_num + IB_UMAD_MAX_PORTS, 1))
776 goto err_sm_cdev; 776 goto err_sm_cdev;
777 777
778 port->sm_class_dev = class_device_create(umad_class, port->sm_dev->dev, 778 port->sm_class_dev = class_device_create(umad_class, NULL, port->sm_dev->dev,
779 device->dma_device, 779 device->dma_device,
780 "issm%d", port->dev_num); 780 "issm%d", port->dev_num);
781 if (IS_ERR(port->sm_class_dev)) 781 if (IS_ERR(port->sm_class_dev))
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index ac08d2c93ea1..0eb38f479b39 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)
757 if (cdev_add(uverbs_dev->dev, IB_UVERBS_BASE_DEV + uverbs_dev->devnum, 1)) 757 if (cdev_add(uverbs_dev->dev, IB_UVERBS_BASE_DEV + uverbs_dev->devnum, 1))
758 goto err_cdev; 758 goto err_cdev;
759 759
760 uverbs_dev->class_dev = class_device_create(uverbs_class, uverbs_dev->dev->dev, 760 uverbs_dev->class_dev = class_device_create(uverbs_class, NULL,
761 uverbs_dev->dev->dev,
761 device->dma_device, 762 device->dma_device,
762 "uverbs%d", uverbs_dev->devnum); 763 "uverbs%d", uverbs_dev->devnum);
763 if (IS_ERR(uverbs_dev->class_dev)) 764 if (IS_ERR(uverbs_dev->class_dev))