]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB: Set class_dev->dev in core for nice device symlink
authorJoachim Fenkes <fenkes@de.ibm.com>
Mon, 23 Apr 2007 16:20:27 +0000 (18:20 +0200)
committerRoland Dreier <rolandd@cisco.com>
Wed, 25 Apr 2007 04:30:38 +0000 (21:30 -0700)
commit1912ffbb88efe872eb8fa8113dfb3cb0b7238764
tree9584df41dd3a517ed330435d634ebf589eb4aa2d
parentc4ed790dfd4b2182c76e0fcd79d4aa85ab02eccf
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>
drivers/infiniband/core/sysfs.c
drivers/infiniband/hw/amso1100/c2_provider.c
drivers/infiniband/hw/cxgb3/iwch_provider.c
drivers/infiniband/hw/ipath/ipath_verbs.c
drivers/infiniband/hw/mthca/mthca_provider.c