diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-04-23 12:20:27 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-25 00:30:38 -0400 |
commit | 1912ffbb88efe872eb8fa8113dfb3cb0b7238764 (patch) | |
tree | 9584df41dd3a517ed330435d634ebf589eb4aa2d /drivers/infiniband/hw/ipath/ipath_verbs.c | |
parent | c4ed790dfd4b2182c76e0fcd79d4aa85ab02eccf (diff) |
IB: Set class_dev->dev in core for nice device symlink
All RDMA drivers except ehca set class_dev->dev to their dma_device
value (ehca leaves this unset). dma_device is the only value that
makes any sense, so move this assignment to core/sysfs.c. This reduce
the duplicated code in the rest of the drivers and gives ehca a nice
/sys/class/infiniband/ehcaX/device symlink.
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_verbs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.c b/drivers/infiniband/hw/ipath/ipath_verbs.c index f5604b876500..18c6df2052c2 100644 --- a/drivers/infiniband/hw/ipath/ipath_verbs.c +++ b/drivers/infiniband/hw/ipath/ipath_verbs.c | |||
@@ -1559,7 +1559,6 @@ int ipath_register_ib_device(struct ipath_devdata *dd) | |||
1559 | dev->node_type = RDMA_NODE_IB_CA; | 1559 | dev->node_type = RDMA_NODE_IB_CA; |
1560 | dev->phys_port_cnt = 1; | 1560 | dev->phys_port_cnt = 1; |
1561 | dev->dma_device = &dd->pcidev->dev; | 1561 | dev->dma_device = &dd->pcidev->dev; |
1562 | dev->class_dev.dev = dev->dma_device; | ||
1563 | dev->query_device = ipath_query_device; | 1562 | dev->query_device = ipath_query_device; |
1564 | dev->modify_device = ipath_modify_device; | 1563 | dev->modify_device = ipath_modify_device; |
1565 | dev->query_port = ipath_query_port; | 1564 | dev->query_port = ipath_query_port; |