From: Joachim Fenkes Date: Mon, 23 Apr 2007 16:20:27 +0000 (+0200) Subject: IB: Set class_dev->dev in core for nice device symlink X-Git-Tag: v2.6.22-rc1~1126^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1912ffbb88efe872eb8fa8113dfb3cb0b7238764;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed