diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index 5c04cfb54cb9..158a214da2f7 100644 --- a/drivers/infiniband/core/sysfs.c +++ b/drivers/infiniband/core/sysfs.c | |||
@@ -760,9 +760,9 @@ int ib_device_register_sysfs(struct ib_device *device) | |||
760 | int i; | 760 | int i; |
761 | 761 | ||
762 | class_dev->class = &ib_class; | 762 | class_dev->class = &ib_class; |
763 | class_dev->driver_data = device; | ||
764 | class_dev->parent = device->dma_device; | 763 | class_dev->parent = device->dma_device; |
765 | dev_set_name(class_dev, device->name); | 764 | dev_set_name(class_dev, device->name); |
765 | dev_set_drvdata(class_dev, device); | ||
766 | 766 | ||
767 | INIT_LIST_HEAD(&device->port_list); | 767 | INIT_LIST_HEAD(&device->port_list); |
768 | 768 | ||