[IB] fix up class_device_create() calls
authorRoland Dreier <rolandd@cisco.com>
Fri, 28 Oct 2005 23:38:15 +0000 (16:38 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 28 Oct 2005 23:38:15 +0000 (16:38 -0700)
Fix class_device_create() calls to match the new prototype which
takes a parent device pointer.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_main.c

index 9e49816d72823cc15527af430d046bc0f9f86784..97128e25f78bfd3b191536fcf854f877940abd0c 100644 (file)
@@ -755,7 +755,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,
        if (cdev_add(port->dev, base_dev + port->dev_num, 1))
                goto err_cdev;
 
-       port->class_dev = class_device_create(umad_class, port->dev->dev,
+       port->class_dev = class_device_create(umad_class, NULL, port->dev->dev,
                                              device->dma_device,
                                              "umad%d", port->dev_num);
        if (IS_ERR(port->class_dev))
@@ -775,7 +775,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,
        if (cdev_add(port->sm_dev, base_dev + port->dev_num + IB_UMAD_MAX_PORTS, 1))
                goto err_sm_cdev;
 
-       port->sm_class_dev = class_device_create(umad_class, port->sm_dev->dev,
+       port->sm_class_dev = class_device_create(umad_class, NULL, port->sm_dev->dev,
                                                 device->dma_device,
                                                 "issm%d", port->dev_num);
        if (IS_ERR(port->sm_class_dev))
index ac08d2c93ea18c2266c1ce0b089f47f2eb0a8395..0eb38f479b3957c7294357a8a6356a8a053011e9 100644 (file)
@@ -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))